Case Sensitivity in Macro Scheduler

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Case Sensitivity in Macro Scheduler

Post by JRL » Thu Dec 21, 2006 11:18 pm

Case Sensitivity in Macro Scheduler
-----------------------------------------
This is based on my findings and is not intended to be the final word on case sensitivity within Macro Scheduler. Anyone is welcome to jump in with corrections when they find any of the statements to be in error or add where the findings are incomplete. The testing was done using Macro Scheduler beta version 9.045.


-----------------------------------------------------------------------------------------------------------------------
Case sensitive items:

- Labels
- Subroutine names
- Dialog names in the dialog definition
- The variable CENTER used to define the position of a dialog must be all upper case.
- Variable values:
For example:

Let>var1=test
Let>var2=TEST

var1 does not equal var2
because
test does not equal TEST

- Window names
From Help for WaitWindowClosed:
It is best to try to provide an exact (including case) window title to ensure the correct window is found, as many applications have multiple invisible windows with similar names. Specifying text without a trailing asterisk will force Macro Scheduler to only look for an exact match.
Windows can be successfully found and used by Macro Scheduler even if the name specified in the macro is not in the correct case. However, Help clearly specifies that using incorrect case for a window name may be detrimental in some instances.

- The object_caption in GetCheckbox and SetCheckbox functions
- The values HIDE, NOSYSTRAY, LOGFILE and new to version 9 NOSTOPKEY
When compiling macros, running macros using the macro function or running macros from a command line, these arguments must be entered in upper case.

- RegistryDelKey
- RegistryDelVal
- RegistryReadKey
- RegistryWriteKey
In all of the Registry functions, the "root_key" argument value must be entered in all upper case. The other arguments seem to be case insensitive.


NetWork Functions:
The following Telnet, Ftp and HTTP items will have case sensitive arguments if the host they are connecting with responds to case sensitivity.

- TelnetConnect
- TelnetSend
- TelnetWaitFor
The "Host" and "Text" arguments will probably be case sensitive

- FTPDelFile
- FTPGetDirList
- FTPGetFile
- FTPPutFile
- FTPRenameFile
The "Server", "Username", "Password", "Host_File_Spec", "Local_File" and "New_File_Name" arguments will probably be case sensitive.

- HTTPRequest
"URL", "LocalFilename", "POST_Data", "ProxyServer", ProxyUsername" and "ProxyPassword" arguments will probably be case sensitive.



-----------------------------------------------------------------------------------------------------------------------
Case insensitive items:

- Macro Scheduler function names (Version 5 and greater)
- System variable names
Help singles out OS_VER, WIN_DIR, SYS_DIR and TEMP_DIR as variables that "store their values in upper case." However, testing these with version 9, all of them worked for me when typed in lower case.
- User defined variable names
- Dialog calls such as Show>DiaLogName or CloseDialog>dIAlOGnAME
- VBscript
- File paths and names


.
Last edited by JRL on Fri Dec 22, 2006 9:10 pm, edited 1 time in total.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Fri Dec 22, 2006 1:18 am

Case insensitive items:

"- File paths and names"


That could be misleading. While it is true for OS type file functions it's not true for internet related functions e.g. HTTPRequest in which the file paths and names are case sensitive. But that's not really a macro scheduler thing in either case.

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Dec 22, 2006 2:06 am

I agree with you. I neglected network functions. I'll address that tomorrow. I'll need to experiment. I rarely do anything with those functions.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts