summaryrefslogtreecommitdiff
path: root/needs_porting/hotkeynotedump.py
diff options
context:
space:
mode:
Diffstat (limited to 'needs_porting/hotkeynotedump.py')
-rw-r--r--needs_porting/hotkeynotedump.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/needs_porting/hotkeynotedump.py b/needs_porting/hotkeynotedump.py
new file mode 100644
index 00000000..77cd0b81
--- /dev/null
+++ b/needs_porting/hotkeynotedump.py
@@ -0,0 +1,20 @@
+from context import Context, ContextManager
+
+cm = ContextManager("Memory.xml")
+df = cm.get_single_context()
+
+df.attach()
+
+gui = df.gui
+
+print "Hotkeys"
+
+hotkeys = gui.read_hotkeys()
+
+for key in hotkeys:
+ print "x: %d\ny: %d\tz: %d\ttext: %s" % (key.x, key.y, key.z, key.name)
+
+df.detach()
+
+print "Done. Press any key to continue"
+raw_input() \ No newline at end of file