# FakeKeypress

`FakeKeypress` command value

This command is mainly intended for debugging fvwm and no guarantees are made that it works for you. FakeKeypress can simulate key press and release events and pass them to fvwm or applications. The parameters are a list of commands which consist of pairs of command tokens and values. The and commands are followed by a key name. The key name is a standard X11 key name as defined in `/usr/include/X11/keysymdef.h`, (without the XK_ prefix), or the keysym database `/usr/X11R6/lib/X11/XKeysymDB`. The , and commands are the same as those used by .

Save all GVim sessions with: "Esc:w\n"

     (gvim) FakeKeypress press Escape \
                            press colon \
                            press w \
                            press Return

Save & exit all GVim sessions with: "Esc:wq\n"

     (gvim) FakeKeypress press Escape \
                            press colon \
                            press w \
                            press q \
                            press Return

Send A to a specific window:

     0x3800002 FakeKeypress press A

Note: all command names can be abbreviated with their first letter.