wshshell.sleep

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

wshshell.sleep

Postby 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
wolfram.brod
 
Posts: 22
Joined: Tue Feb 24, 2009 7:43 am

Return to MediaMonkey 4 Addons developer forum

Who is online

Users browsing this forum: No registered users and 4 guests