Jump to content

puneet

Members
  • Posts

    3
  • Joined

  • Last visited

puneet's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Guys, Any ideas here. The problem is that if the remote display is not active the script doesn't work. Since i have to start the script concurrently on 10 different machines to create load on a server i can not have all the remote displays active. The script works fine when the window is active. But when i remote execute the script it starts fine but fails to complete. The send() text calls just hang. Any ideas ?
  2. Also is there a way to start a RDP connection to a remote machine and start applications inside the RDP client. I think AutoIT can not detect the windows inside the remote connection.
  3. 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")
×
×
  • Create New...