I'm having problems with the following script. I call a SRT at the beginning of the script which works, the script then continues and a number of camera buttons are selected in this case for 30 seconds, at the end of the 30 seconds I again call the same SRT only this time it isn't found.
Does anybody have any ideas?
Code: Select all
VBStart
VBEND
GoSub>TaskManager
SRT>TaskManager
//Gets the list of processes for system status.exe from task manager and saves to a text file
SetFocus>Windows Task Manager
WaitWindowOpen>Windows Task Manager
WindowAction>1,Windows Task Manager
Wait>1
Send>system status.exe
SetFocus>Windows Task Manager
Wait>1
GetTextInRect>24,89,600,465,Taskmanager
TimeStamp>C:\Documents and Settings\Administrator\Desktop\Script Logging\Camera Test.txt,%Taskmanager%
Wait>0.5
//CloseWindow>Windows Task Manager
WindowAction>2,Windows Task Manager
End>TaskManager
VBEval>Timer,StartTime
Repeat>ElapsedTime
Random>9,rand
If>rand=0
Add>rand,1
Endif
Wait>3
PushButton>LCS,Camera %rand%
Wait>2
VBEval>Timer-%StartTime%,ElapsedTime
Until>ElapsedTime>30
GoSub>TaskManager
MessageModal>End Test