I have a simple script which works fine on the local machine.
When i try to execute the same script without the remote connection using *STAF* (a QA tool) the script starts but the send() calls just hangs. I am just opening a word document and sending some text. I want to create some cpu load and ideally connect a remote display (Windows RDP client) to this machine to simulate a data entry office worker.
Any ideas ?
I do something like this :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
run("C:\Program Files\Microsoft Office\OFFICE11\winword.exe")
AutoItSetOption("WinTitleMatchMode",2) ; match any substring
WinWaitActive("Microsoft Word") ; wait till we get the string on the window
send("!{space}")
sleep(1000)
send("x") ; move to fullscreen mode
sleep (2000)
dim $word_text = "Random Junk goes here ! "
Opt("SendKeyDelay", 25) ; delay between keystrokes is 25 msec.
send (" Windows Terminal Server {enter} ")
Sleep(2000)
for $i=1 to 10
send ($word_text)
next
send("!f s")
send("MSWordDoc")
send("{enter}")
WinWaitActive("Microsoft Office Word")
send("{enter}")
sleep(1000)
send("!f c")
sleep(2000)
send("!f x")