wshshell.sleep

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: wshshell.sleep

wshshell.sleep

by wolfram.brod » Sun Oct 30, 2016 12:40 pm

This is my code:

Code: Select all

	Set WshShell = CreateObject("WScript.Shell")
	WshShell.sendkeys "^r"
	WshShell.Sleep 1000   'this statement causes an error
	WshShell.sendkeys "{DOWN}"
The cript works fine, except for the sllep-Statement, but I need it at this place because MM needs some time to build the new Window. I assume it is a stupid failure, but I can't find what is wrong. Windows says:
Object doesn't support this method: wshshell.sleep
Pls help
Wolfram

Top