thanks for your informative reply.

I've tried your plugin, but it seems that the plugin only accepts one
modifier key.

This code opens (only with debugger) the macOS Spotlight and close spotlight
after you step over "POST VIRTUAL KEY"

$modifiers:=Command key mask+Control key mask

POST VIRTUAL KEY (kVK_Space;$modifiers)

it seems the code

CGEventPost(kCGHIDEventTap, e);

cancels the pressed state of control, option, fn, command (but not shift) 

I've changed the code to support a combination of modifiers.

that said, it will not work in 4D.

you can confirm that the event is sent correctly by calling DELAY PROCESS and 
focusing on another app.

4D Internet Users Group (4D iNUG)

Reply via email to