I have been unable to get them to work. I have tried both
with and without the variable names bracketed with "%".
Comments in test code below.
Thank you for any help.
Leo
Code: Select all
Run Program>C:\WINNT\system32\notepad.exe
WaitWindowOpen>NOTEPAD*
Let>baseXforS1 = 500
Let>baseYforVLC=0
Let>thisX = 0
Let>thisY = 0
// set ScreenNum - will be input paramater on compiled code, so
// same scp can be used to create multiple exe files with different names
// and different ScreenNum value input
// For debug/test code SreenNum here
Let>ScreenNum = 1
// if single video out, use base values
IF> ScreenNum = 0
Let>thisX = 0
Let>thisX = 0
ELSE
// if multiple video, put on another screen
Let>thisX = {%baseXforS1% * %ScreenNum%}
// Let>thisX = 500 // hardcoding the newX variable value here does not take either.
Let>thisY = 0
ENDIF
// This Move line moves window to 0,0 as if variables not defined
// The debug watch windows shows variables set as desired.
MoveWindow>NOTEPAD*,%thisX%,%thisY%
// This move line (with constants) moves window as expected
MoveWindow>NOTEPAD*,500,0
// arbitraty size for initial test
ResizeWindow>NOTEPAD*,294,429
// Focus the app
SetFocus>NOTEPAD*