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
kVK_Space:=0x0031

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) 
implicitly.

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

https://github.com/miyako/4d-plugin-virtual-key

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)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to