I have the following set of functions that are supposed to do the following:
[list]1. send a FakeKeypress on to the application in focus,
2. set the bound key to a Function that does nothing (I have to have a ‘dead’ time when pressing that bound key will not send an XEvent.)
3. After 4 seconds turn the key binding back to the original function[/list:u]
the problem is that the FakeKeypress is NEVER getting to the Target window!
here is my code:
Key F20 A M FuncSwitchApplications
+ I FuncToggleAddAppsScreen
+ I Key F20 A M FuncSwitchApplications
+ I WindowId $[w.id] FakeKeypress press F20
+ I Key F20 A M FuncNop
+ I Schedule 4000 FuncResetSwitchApplications
+ I Nop
Fire up xev from a terminal so that you can watch the ouput from it, and bind it to the application that is to receive the fakeKeyPress. Send the fakekeypress – does xev log the output that the application has received it?