Martin,
How are you loading the script? And are you pressing the hotkey twice?
Also, what toggle method are you referring to?
Aaron
martin webster wrote:
Hi all,
I found this example in the window-eyes help in the RegisterHotkey section. This script loads, but nothing happens. It is meant to be able to detect whether a hotkey has been pressed twice, but it doesn't say anything.
' Detect if a key has been pressed twice in succession
Set registeredKey = Keyboard.RegisterHotKey("Control-Shift-Windows-R",
"SpeakHelloWorld",
, , True)
Sub SpeakHelloWorld(firstPress)
If Not firstPress Then
Speak "Key pressed twice in succession"
End If
End Sub
Can somebody explain why this doesn't work. I would all so like an example of the toggle method.
Warm regards.
Martin Webster.
--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.
Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development