Search found 92 matches

by Edmund
Tue Apr 02, 2013 10:28 am
Forum: Application Development
Topic: Change Date Format
Replies: 1
Views: 5172

Re: Change Date Format

The date format is controlled by the selected region for the Date/Time.

Try set the region you are in (under Settings-> Time Zon & Region).
region.png
region.png (18.17 KiB) Viewed 5169 times
i.e. if I select Sweden the date will be formated as YYYY-MM-DD.
by Edmund
Tue Apr 02, 2013 5:56 am
Forum: Application Development
Topic: update text box before showing pop up screen
Replies: 4
Views: 9008

Re: update text box before showing pop up screen

You could try setting the tag to always active. This will make iX always read the tag from the plc and not only when it´s in use. Go to the taglist and locate the tag and set the "Always Active" property (this property is only visible when you select "Others" in the Columns Visible groupbox). If you...
by Edmund
Thu Mar 28, 2013 1:31 pm
Forum: Scripting
Topic: Position of the cursor
Replies: 5
Views: 9646

Re: Position of the cursor

Sorry Jwphilippi, I didn´t mean try to fool you :oops:

I was simulating in a T12C project (looks just lika a T15B in the IDE).

Try use this instead and see if it works

Code: Select all

var cursorPos = Control.MousePosition;
Text1.Text = "X = " + cursorPos.X + " / Y = " + cursorPos.Y;

Regards
by Edmund
Wed Mar 27, 2013 12:09 pm
Forum: Scripting
Topic: Position of the cursor
Replies: 5
Views: 9646

Re: Position of the cursor

Sure, it shouldnt be a problem... I´m home right now so can´t try it on a panel but following should work. If you want it in "Point" format var cursorPos = System.Windows.Forms.Cursor.Position; You can then access X/Y like this int cursorPosX = cursorPos.X; Or if you want X/Y as two INT: var cursorP...
by Edmund
Mon Mar 25, 2013 7:58 am
Forum: Scripting
Topic: Periodic Timers - how to prevent autostart?
Replies: 2
Views: 6303

Re: Periodic Timers - how to prevent autostart?

Remove timer1.Enabled = true; timer2.Enabled = true; From the constructor. So it looks like this static TimerScript() { timer1 = new Timer(); timer1.Tick += new EventHandler(TimeOut1); timer1.Interval = 1000; timer2 = new Timer(); timer2.Tick += new EventHandler(TimeOut2); timer2.Interval = 250; }
by Edmund
Thu Mar 21, 2013 4:52 am
Forum: Scripting
Topic: Alarms Leds Power T7A
Replies: 2
Views: 5697

Re: Alarms Leds Power T7A

Hi There!

I have never used the T7A, but I´m pretty sure there is only one led in the panel...
by Edmund
Thu Mar 21, 2013 4:50 am
Forum: Scripting
Topic: Picture Methods/Properties through Scripts
Replies: 4
Views: 25280

Re: Picture Methods/Properties through Scripts

Not sure why you want to convert it, but INativeBitmap is a Interface and System.Drawing.Bitmap is a class.

A class can implement a Interface but not be converted to one.
by Edmund
Tue Mar 19, 2013 11:34 pm
Forum: Scripting
Topic: Picture Methods/Properties through Scripts
Replies: 4
Views: 25280

Re: Picture Methods/Properties through Scripts

Install Microsoft Visual Studio (Full or C# Express), and set it up as a external IDE. There is forum post how to do that. iX Script IDE only shows common properties / function for each object that are "safe/simple" to use for any user (script expert or not)... The properties and function can be cal...
by Edmund
Tue Mar 19, 2013 9:51 am
Forum: Application Development
Topic: is it possible to minimize iX or alt-tab?
Replies: 5
Views: 11444

Re: is it possible to minimize iX or alt-tab?

Edmund, you are a force to be reckoned with. Thanks so much for all that code! Thank you mmarchese ;) Hmm let´s see if we can figure this out together... The function CreateProcess in coredll.dll has alot of arguments passed to it. The first argument is the application to start (*.exe) so in your c...
by Edmund
Tue Mar 19, 2013 7:13 am
Forum: Application Development
Topic: is it possible to minimize iX or alt-tab?
Replies: 5
Views: 11444

Re: is it possible to minimize iX or alt-tab?

Well here is a example for Windows CE. It starts Wordpad (builtin in the panel), or if it´s running it will put it to foreground. Try to replace it with the Cognex software. namespace Neo.ApplicationFramework.Generated { using System.Windows.Forms; using System; using System.Drawing; using Neo.Appli...