I impose my rule on variable naming: only A-z, 0-9 and _ (underscore) are allowed.
Please feel free to use it.
How to use:
Insert your script in the label area named Script.
Code: Select all
LabelToVar>Script,Script
Let>Rex=(?im)(?<=Let>)([A-Za-z0-9_]+)(?==)
Regex>Rex,Script,0,Match,num,0
Let>VarList=
If>num>0
Let>i=1
Repeat>i
Concat>VarList,Match_%i%
Concat>VarList,%CRLF%
Add>i,1
Until>i>num
Endif
MDL>Number of found variables=%num%%CRLF%%VarList%
/*
Script:
Let>WIN_REGEX=1
Let>WW_TIMEOUT=10
Let>WW_RESULT=TRUE
Let>Rex=^Macro Scheduler$
Let>WIN_SLEEP=1
WaitWindowOpen>%Rex%
Let>WIN_SLEEP=0
WaitReady>0
If>WW_RESULT=TRUE
SetFocus>%Pgm%
Endif
*/