HotKeyEvent - Double Modifier Keys

BlitzPlus Forums/BlitzPlus Programming/HotKeyEvent - Double Modifier Keys

William Drescher(Posted 2007) [#1]
Does anyone know how to make a double HotKeyEvent modifier? Something like...
Window=CreateWindow("Window",0,0,640,480,0,1)

;5 = Ctrl+Shift+<key>
HotKeyEvent(1,5,$803)

Repeat
    id=WaitEvent()
    Select id
        case $803
            FreeGadget Window
            End
    End Select
Forever
End


That code should exit if you press Ctrl+Shift+ESC. I can't figure how to do that...


Beaker(Posted 2007) [#2]
You don't add in the escape key, just use 3 (Ctrl=1+Shift=2):
HotKeyEvent(1,3,$803)
..should work.


William Drescher(Posted 2007) [#3]
Thank you very much.