I am trying to pass a keypress, that has a state modified with the shift mask (0x0001) to an application that is active, but just not in focus… anyone else ever try to do this before?
I have tried using a keybinding to a function, and then pass a synthetic keypress (FakeKeypress) onto the desired application, but I can’t get the FakeKeypress to pass in a state other than 0x0000. Anyone have any ideas?
Below is the code that I have been trying (unsuccessfully):
Key F1 A A FuncFoo DestroyFunc FuncFoo AddToFunc FuncFoo + I FuncFooHelper "foo" AddToFunc FuncFooHelper + I WindowId $[w.id] FakeKeypress press F1 release F1
If anyone has been able to make something similar work, I would appreciate any ideas that you have.