On Sat, Mar 06, 2004 at 01:44:39PM +1100, Scott Smedley wrote:
> Hi all,
> 
> Find attached a patch to allow sending of arbitrary key events to
> windows. It introduces a new command to FVWM: FakeKeypress
> 
> Examples of use:
> 
> # save all GVim sessions: Esc:w\n
> FvwmCommand 'All (gvim) FakeKeypress press Escape press colon press w press 
> Return'
> # save & exit all GVim sessions: Esc:wq\n
> FvwmCommand 'All (gvim) FakeKeypress press Escape press colon press w press q 
> press Return'
> 
> # 1984: Do we live under a totalitarian regime?
> FvwmCommand 'All (gcalc) FakeKeypress press 2 press plus press 2 press equal'
> 
> # Send A to a specific window.
> FvwmCommand 'WindowId 0x3800002 FakeKeypress press A'

I have applied the patch with some minor reformatting and
renaming - nothing serious.  Works like a charm, at least for some
applications (namely, FvwmConsole ignores it).

Ciao

Dominik ^_^  ^_^
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to