Martin,
No, each hotkey needs its own line. If you want each key to call the
same function, just pass the an optional parameter to the function:
Set myHKey = Keyboard.RegisterHotkey("h", "HandleKey", Nothing, 1)
Set myGKey = Keyboard.RegisterHotkey("g", "HandleKey", Nothing, 2)
Sub HandleKey(parm)
If parm = 1 Then
' H was pressed
ElseIf parm = 2 Then
' G was pressed
Else
' Something else was pressed
End If
End Sub
Aaron
martin webster wrote:
Hi all,
is it possible to register more than one hotkey on the same line of code?.
I tried to do this with a line of code that went something like this.
Set ObjAkey = Keyboard.RegisterHotkey("h, g", "HandleKey")
It didn't really work smile.
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