Search found 13 matches
- Mon Aug 23, 2010 7:09 pm
- Forum: Technical / Scripting
- Topic: SK_IGNORECAPS Bug
- Replies: 2
- Views: 3164
Thanks, Marcus. Until SK_IGNORECAPS is fixed, I'm using the workaround below. Instead of: Let>SK_IGNORECAPS=1 Send>123./Hello World! use: // Turn off Caps Lock explicitly LibFunc>User32,GetKeyState,CAP_STATE,20 CapsOff Send>123./Hello World! Label>END_OF_SCRIPT // Return to original states If>{%CAP_...
- Sat Aug 21, 2010 9:48 am
- Forum: Technical / Scripting
- Topic: SK_IGNORECAPS Bug
- Replies: 2
- Views: 3164
SK_IGNORECAPS Bug
I'm running MS Version 12.0.2 on Windows 7 x64 Ultimate. I don't think SK_IGNORECAPS is doing what's it's supposed to: Let>SK_IGNORECAPS=1 Send>123./Hello World! With the keyboard's Caps Lock key OFF: 123./Hello World! With the keyboard's Caps Lock key ON: !@#>?Hello World1 This should be exactly th...
- Tue Aug 03, 2010 7:13 am
- Forum: Technical / Scripting
- Topic: VAREXPLICIT=1 and Array Access
- Replies: 4
- Views: 7011
Your are right, JRL. My script doesn't work as I intended. As you pointed out, it seems that VAREXPLICIT is a write only variable. It always returns 0 regardless of its true value, which you can set with LET> My original snippet was meant to be as side-effect free as possible, by trying to remember ...
- Mon Aug 02, 2010 8:50 am
- Forum: Technical / Scripting
- Topic: VAREXPLICIT=1 and Array Access
- Replies: 4
- Views: 7011
VAREXPLICIT=1 and Array Access
I code with VAREXPLICIT=1 in hopes of keeping things clearer with respect to variable expansion in MacroScheduler. This approach seems to be going well, until I needed to access an array element. I couldn't find a way to do so while VAREXPLICIT=1, so had to set VAREXPLICIT=0, assign the array elemen...
- Wed Jun 16, 2010 9:39 pm
- Forum: Technical / Scripting
- Topic: Command line compile of with msrt.exe changed?
- Replies: 2
- Views: 4942
- Wed Jun 16, 2010 3:29 pm
- Forum: Technical / Scripting
- Topic: Command line compile of with msrt.exe changed?
- Replies: 2
- Views: 4942
Command line compile of with msrt.exe changed?
I'm running Macro Scheduler Pro 12.0.2 on Windows 7 x64. This is the script to be compiled to console app: // COMPILE_OPTS|C:\Users\Khoa\Desktop\x\x.exe||CONSOLE=1|INCLUDES=1| //Set IGNORESPACES to 1 to force script interpreter to ignore spaces. //If using IGNORESPACES quote strings in {" ... "} //L...
- Wed Jun 16, 2010 4:28 am
- Forum: Technical / Scripting
- Topic: SRT to set a variable to default if not already set
- Replies: 4
- Views: 6035
If the variable HAS a value and that value is the test text, then a false negative will be detected. In other words, the sample subroutine will fail if the variable TIMEOUT has been set to the text "TIMEOUT". e.g. Let>TIMEOUT=TIMEOUT Understood. I think this is acceptable until this Assigned workar...
- Tue Jun 15, 2010 9:57 pm
- Forum: Technical / Scripting
- Topic: SRT to set a variable to default if not already set
- Replies: 4
- Views: 6035
Beautiful! Thank you, JRL. Here's the SRT call and declaration packaged up nicely. // This sequence sets the variable TIMEOUT to 0 if it's not already set Assigned>TIMEOUT,result If>{%result%="FALSE"} Let>TIMEOUT=0 EndIf // This call does the same thing as above with SRT SetIfNotDefined GoSub>SetIfN...
- Tue Jun 15, 2010 12:03 pm
- Forum: Technical / Scripting
- Topic: Script Editor Locks Script File While Opened
- Replies: 3
- Views: 4631
To effect an externally initiated compile with the file to be compiled opened in the Script Editor, I ended up create an Macro Scheduler file called qcompile.exe created from qcompile.exe as follows: // COMPILE_OPTS|C:\Users\Khoa\Desktop\InterfaceED Work\InterfaceED\qcompile.exe||CONSOLE=1|INCLUDES=...
- Tue Jun 15, 2010 5:44 am
- Forum: Enhancement Suggestions
- Topic: Assigned> Enhancement Suggestion
- Replies: 2
- Views: 10288
Please add my vote for jpuziano's suggestion to allow Assign to test complex expressions. This ability would allow the test and set of a variable if not already defined, to be placed in an SRT for clean application. I've just posted more information on this SRT issue at: http://www.mjtnet.com/usergr...
- Tue Jun 15, 2010 5:35 am
- Forum: Technical / Scripting
- Topic: SRT to set a variable to default if not already set
- Replies: 4
- Views: 6035
SRT to set a variable to default if not already set
Hi all, I'm starting to get into Macro Scheduler programming, so I'm not quite sure what's possible and not. I'm finding that I need to check if a variable is defined, and set it to default value if undefined. For example, test the TIMEOUT variable as such: Assigned>TIMEOUT,result If>{%result%="FALS...
- Mon Jun 14, 2010 8:44 pm
- Forum: Technical / Scripting
- Topic: Script Editor Locks Script File While Opened
- Replies: 3
- Views: 4631
Thank you for the quick and informative response, Marcus. I can understand the need to lock script files for data integrity in a networked/multi-user environment. Is there any way you can reduce the scope of the lock? Perhaps a read lock, rather than an exclusive lock? Or if an exclusive lock is nec...
- Mon Jun 14, 2010 6:55 am
- Forum: Technical / Scripting
- Topic: Script Editor Locks Script File While Opened
- Replies: 3
- Views: 4631
Script Editor Locks Script File While Opened
I'm using the latest Macro Scheduler 12.0.2 Script Editor to write a console app on Windows 7 x64. While I have the script file opened in the Script Editor, I can "Save" changes, then "Create Exe" to compile and all is well. However, if instead of using the Script Editor's "Create Exe" function, I r...