Hi all,
I got an example from Doug which disables most hotkeys globally, but I can't
seem to get this routine to work in VB script. I get the error, "cannot call a
sub with parentheses when calling a sub". I've looked at some other examples I
have and this looks correct to me. This script should disable most hotkeys for
5 seconds, and then disconnect this event, in other words, I want this action
only to accur for 5 seconds, and then I want the hotkeys to be enabled again.
Begin VB script.
ConnectEvent(DesktopWindow, "OnChildActivate", "MyOnChildActivate")
Sub MyOnChildActivate(win)
win.Overlap.Settings.General.Hotkeys = FALSE
Sleep 5000
Disconnect(Desktop.Window)
Playsound, "c:\whistle wake.wav"
End Sub
Warm regards.
Martin Webster.