Page 1 of 1

CXKEY Handler

Posted: Sat Nov 17, 2012 10:12 am
by fingus
First of all thank you Andreas for implementing many of my feature-requests :D
The new commands "useragent" is working fine and already build in flipclock 53.1 beta 3.
But i face a problem with CXKEY:

When setting the tooltype-entry:

cxkey hotkey=ctrl alt f

or

cxkey_hotkey=ctrl alt f

or

CXKEY=ctrl alt f



with this:

Code: Select all


function p_hotkey()
    DebugPrint("Es geht!...")
    waitleftmouse()
    End
endfunction

InstallEventHandler({hotkey = p_hotkey})

Nothing happen. Did i understand this wrong. The Documentation describe "if you set '-cxkey hotkey'-Console-Argument or Tooltype-Argument" this should work.

Re: CXKEY Handler

Posted: Sat Nov 17, 2012 12:10 pm
by airsoftsoftwair
It works. I just tested it on OS4 and MorphOS. You must be doing something wrong. The tooltype syntax is:

Code: Select all

CXKEY=ctrl alt f
Then I used the following test code to verify the functionality:

Code: Select all

InstallEventHandler({Hotkey = Function() NPrint("Hotkey pressed!") EndFunction})

Repeat
   WaitEvent
Forever
Works fine here. If it doesn't work for you, post information about your system.

Re: CXKEY Handler

Posted: Sat Nov 17, 2012 1:02 pm
by fingus
Andreas wrote:It works. I just tested it on OS4 and MorphOS. You must be doing something wrong. The tooltype syntax is:
I found the problem, it´s not related to Hollywood!

If my code will be started with "F4" (That´s compile and test) then CubicIDE seems to blocks or eat all "L-/R-Control-L-/R-Alt" and "L-/R-Shift-L-/R-Alt" inputs/combinations for Hollywood Projects.

I didn´t know if this is a problem with CubicIDE or Microgolded or the HW4Hollywood-Plugin.