diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-07-31 12:28:28 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-07-31 12:28:28 +0100 |
commit | e3a87d718830d561ffdf1be9c93673f09e6acc15 (patch) | |
tree | ecd76a68252aadbddff6d7ab21ce0b9bdd22b534 |
some initial notes
-rw-r--r-- | README | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -0,0 +1,39 @@ +This program is supposed to replay tests made with Spice but probably can be +used for many programs. + +Mainly it records any mouse and keyboard and some images under the mouse from +a window to a file. +Then you can twick the recording to associate images for instance with clicks. +Then you can reproduce the recording. + +Implementation +-------------- +Grab the key similar to xinput to get windows child. +Get window needed, compute root child and handle only that events. +Record window position so to be able to replay to a different position. +PROBLEM: window should stay in same position (how to update position?) +Needs to pass some way to modify the positions for playback, something like +bound to lower side, one corner, shift, scale and so on (based on new window). +Use code from xwininfo to detect window size, get parent till is not root. +Record also windows movement, creation and so on? +Also we need to follow focus to understand we are sending input to our +window. Child on message are only related to mouse, not keyboard. + +Ways to grab mouse/keys: +- xtest +- xinput +- record + +Ways to inject mouse/keys: +- xtest +- sending events to windows (see xdotool source) +- injecting event directly (like xscope) +- injecting code to do the same as xscope does +- also we could use a separate X server + +xdotool ? +xscope ? +xprop -id 0x5c00001|grep -i class get window class +wmctrl xdotool +xev can see windows close and move, just different events +xwd for example dumping part of screen/window |