summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2015-07-31 12:28:28 +0100
committerFrediano Ziglio <fziglio@redhat.com>2015-07-31 12:28:28 +0100
commite3a87d718830d561ffdf1be9c93673f09e6acc15 (patch)
treeecd76a68252aadbddff6d7ab21ce0b9bdd22b534
some initial notes
-rw-r--r--README39
1 files changed, 39 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..c79ab90
--- /dev/null
+++ b/README
@@ -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