Search found 137 matches

by AMitchneck
Tue Jul 25, 2017 7:36 am
Forum: Scripting
Topic: Reusable function to toggle bit
Replies: 2
Views: 8201

Re: Reusable function to toggle bit

First off, function variables are local to their function. This means any modifications to these variables within the function will not be seen outside the function unless the variable is passed by reference. Luckily, you already have your function written properly to be able to pass out the result ...
by AMitchneck
Thu Jul 06, 2017 4:15 pm
Forum: Application Development
Topic: Screen Saver
Replies: 3
Views: 12583

Re: Screen Saver

Hi, I've never tried this, but take a look at: https://stackoverflow.com/questions/1037595/c-sharp-detect-time-of-last-user-interaction-with-the-os Note on windows CE user32.dll and kernel32.dll are replaced with coredll.dll. So time since last user interaction would be: using System; using System.R...
by AMitchneck
Thu Jul 06, 2017 3:25 pm
Forum: Scripting
Topic: Assign Security Group
Replies: 3
Views: 9188

Re: Assign Security Group

OK. When you say "give administrator access" do you mean log them in as an administrator? To do this you could specify a username and password to the login function like so: Globals.Security.Login("userName", "password"); If you want, you can pre-check if the user is already logged in as administrat...
by AMitchneck
Thu Jul 06, 2017 8:30 am
Forum: Scripting
Topic: Assign Security Group
Replies: 3
Views: 9188

Re: Assign Security Group

Hi ParthDesai, What is it exactly you are trying to do? On the screen you can configure controls to be hidden, disabled, etc. based on user access level. Are you trying to control what the user can do from the script side? For instance, if they are low-level user pressing button does A, but if they ...
by AMitchneck
Tue Jun 27, 2017 6:45 am
Forum: Application Development
Topic: Is it possible to read from array tags in a report?
Replies: 2
Views: 9107

Re: Is it possible to read from array tags in a report?

I've never made reports, but I wonder if this has a relation to the scripting....

Have you tried <#Tag(tagName.Value[0])>?
by AMitchneck
Tue May 30, 2017 7:16 am
Forum: Application Development
Topic: Compilation error migrating project to last version 2.2 SP 2
Replies: 2
Views: 8077

Re: Compilation error migrating project to last version 2.2

Andrea, Just curious, what happens if you change ValidatesOnNotifyDataError to ValidatesOnNotifyDataErrors (add s to end of error)? Doing a google search, I found the following post: https://social.msdn.microsoft.com/Forums/vstudio/en-US/ba1c348d-9b14-4004-b726-5bab095f0acd/issue-with-wpf-validation...
by AMitchneck
Wed May 10, 2017 7:16 am
Forum: Scripting
Topic: Characters and languages with symbols ex. Chinese in iX Dev
Replies: 1
Views: 5970

Re: Characters and languages with symbols ex. Chinese in iX

From my experience, what characters you can use is solely based on the font. You just need to make sure you are using a Unicode-supportive font such as Arial Unicode MS.
by AMitchneck
Mon Feb 13, 2017 10:17 am
Forum: Scripting
Topic: Generic left mouse down click
Replies: 1
Views: 7129

Re: Generic left mouse down click

The only way to do this is by using message hooks. To give the answer from Stack Overflow, http://stackoverflow.com/questions/7497 ... use-clicks. Just to note, if you are using Windows CE based HMI you will need to replace dll references with core.dll.
by AMitchneck
Mon Jan 23, 2017 12:22 pm
Forum: Scripting
Topic: Delete reports in Project Files Folder
Replies: 1
Views: 7626

Re: Delete reports in Project Files Folder

Hi ianrobo75, I had a similar problem and created the following solution: using System.IO; public int ExpungeFiles(string filePath, string filePattern, int keep) { DirectoryInfo folder; FileInfo[] files; DateTime CreationTime; int i, j, nFiles; try { folder = new DirectoryInfo(filePath); } catch (Ar...
by AMitchneck
Thu Jan 19, 2017 8:07 am
Forum: Application Development
Topic: turning a bit switch on via website
Replies: 1
Views: 6432

Re: turning a bit switch on via website

I've never used the website ability of iX so I don't know if this will be helpful. Are you able to write script to set a tag? If yes, take a look at adding script to a button: http://www.w3schools.com/jsref/event_onclick.asp