Reputation: 10536
I have plugged a Mac French keyboard onto Windows.
I would like to have the left bracket key work normally, meaning when typing Alt+Shift+(, even with left hand side modifiers.
I have the following code :
HotKeySet("!+{(}", "LeftBracket")
Func LeftBracket()
Send("{ASC 91}")
EndFunc
But it doesn't work.
When I replace the hotkey by "!a"
, it works.
When I replace Send("{ASC 91}")
by Send("a")
it sends a
correctly.
But it seems not to work when I have the code above.
Upvotes: 1
Views: 150
Reputation: 2151
You need to use one of these possibilities. ( needs already the shift key :-)
HotKeySet("!{(}", "LeftBracket")
HotKeySet("!+{9}", "LeftBracket1")
while 1
Sleep(1000)
Wend
Func LeftBracket()
Send("{ASC 91}" & 'HUHU')
EndFunc
Func LeftBracket1()
Send("{ASC 91}" & 'BLA')
EndFunc
Upvotes: 0