forked from alvatar/xmacro
-
Notifications
You must be signed in to change notification settings - Fork 0
XMacro utility
License
matt-kita/xmacro
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
* Portions Copyright (C) 2011 Álvaro Castro-Castilla * Portions Copyright (C) 2000 Gabor Keresztfalvi <[email protected]> * * This program is heavily based on * xremote (http://infa.abo.fi/~chakie/xremote/) which is: * Copyright (C) 2000 Jan Ekholm <[email protected]> xmacrorec: Grabs all the control over your local display and send the mouse and keyboard events to the remote display. In the meantime it emits KeyStrPress, KeyStrRelease, ButtonPress and ButtonRelease lines to the standard output. It emits MotionNotify lines only if the event struct of the above four events contains different coordinates than the previous event or a mouse button is pressed during the movement. Note: As xmacrorec doesn't save the timestamp of the event, you may need to insert Delay statements into the recorded file! xmacroplay: Reads lines from the standard input. It can understand the following lines: Delay <sec> - delays the program with <sec> secundums ButtonPress <n> - sends a ButtonPress event with button <n> this emulates the pressing of the mouse button <n> ButtonRelease <n> - sends a ButtonRelease event with button <n> this emulates the releaseing of the mouse button <n> MotionNotify <x> <y> - sends a MotionNotify event this emulates the movment of the mouse KeyCodePress <kc> - sends a KeyPress event with the keycode <kc> in this case you must know the keycodes of the remote server KeyCodeRelease <kc> - sends a KeyRelease event with the keycode <kc> in this case you must know the keycodes of the remote server KeySymPress <ks> - sends a KeyPress event with the keysym <ks> converted to the appropriate keycode on the remote server KeySymRelease <ks> - sends a KeyRelease event with the keysym <ks> converted to the appropriate keycode on the remote server KeySym <ks> - send both KeyPress and KeyRelease events with the keysym <ks> converted to the appropriate keycode on the remote server KeyStrPress <ksname> - sends a KeyPress event with the keysym name <ksname> converted to the appropriate keycode on the remote server; standard KeySym names are obtained from <X11/keysymdef.h> by removing the XK_ prefix from each name. KeyStrRelease <ksname> - sends a KeyRelease event with the keysym name <ksname> converted to the appropriate keycode on the remote server; standard KeySym names are obtained from <X11/keysymdef.h> by removing the XK_ prefix from each name. KeyStr <ksname> - sends both KeyPress and KeyRelease events with the keysym name <ksname> converted to the appropriate keycode on the remote server; standard KeySym names are obtained from <X11/keysymdef.h> by removing the XK_ prefix from each name. String <max. 1024 long string> - Sends the string as single characters converted to KeyPress and KeyRelease events based on a character table in chartbl.h (currently only Latin1 is used...) The 'run' script is provided as an example to use the xmacrorec and xmacroplay utilities in a virtual frame buffer X server. You may need to modify the script...
About
XMacro utility
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C++ 82.4%
- C 16.6%
- Makefile 1.0%