Re: Interesting --- VK_ESCAPE used to work --- Only one that now does VK_ENTER ??
- Posted by zebra Apr 11, 2011
- 1484 views
Selgor:
procedure WinKey(integer self, integer event, sequence parms) -- Check for key presses. trace(1) -- LOOK AT parms HERE if parms[1] = VK_MBUTTON then --LMENU+VK_F10 then --PAUSE then --ESCAPE then setCtlPosition(Win, 525, 150) -- Show it end if end procedure setHandler( Screen , w32HKeyDown, routine_id("WinKey"))
Look at whats happening with trace. I had an unknown problem with my own code with eu ver4.0.2 when I tried to use a CONSTANT in a IF THEN statment Try changing : ----------> if parms[1] = VK_MBUTTON then To the actual value: ----------> if parms[1] = #04 then Whatever key you want to try.