CXKEY Handler

Discuss any general programming issues here
Post Reply
User avatar
fingus
Posts: 271
Joined: Fri Sep 16, 2011 9:53 am

CXKEY Handler

Post 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.
User avatar
airsoftsoftwair
Posts: 5871
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CXKEY Handler

Post 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.
User avatar
fingus
Posts: 271
Joined: Fri Sep 16, 2011 9:53 am

Re: CXKEY Handler

Post 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.
Post Reply