Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Load test script

$
0
0

I am having some problems with a script for remote desktop load simulation.

the script launches as it should, my problem is when i try to launch word and type text.

'// start Word
RUIDCOM.SendKey "winword.exe"
RUIDCOM.PressKeyAndWaitForEvent "Open Word ", VK_RETURN, VKeyFlag, "Document 1 Microsoft Word", WINDOW_EVENT
WScript.Sleep (2000)
RUIDCOM.SendKey "some text"
WScript.Sleep (2000)

Word opens as it should but the script will not type any text.

here is the example that words for notepad.'// start notepad
RUIDCOM.SendKey "notepad.exe"
RUIDCOM.PressKeyAndWaitForEvent "Open Notepad", VK_RETURN, VKeyFlag, "Untitled - Notepad", WINDOW_EVENT
WScript.Sleep (2000)
RUIDCOM.SendKey "some text"
WScript.Sleep (2000)

If any one has a example of a script that will point me in the right direction that would be great.

Thank you

Shane


Shane Bohannan


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>