summaryrefslogtreecommitdiff
path: root/Scripts/mayHem.py
diff options
context:
space:
mode:
authorJulian <julianteule@gmail.com>2017-01-16 19:57:02 +0100
committerJulian <julianteule@gmail.com>2017-01-16 19:57:02 +0100
commitd6a34dc03e54f6d940d9c4812da6f0ff7b9bb116 (patch)
tree7a6bfe249ffc7035141a6311b931486d26e09979 /Scripts/mayHem.py
parentd2dc145a765763281efb837d76d5e2fd221f6d39 (diff)
parented3f8a5ba0dbdd9c0d3363568db4e47546513161 (diff)
LOLSAFnaodvfnojdvnsoj
Diffstat (limited to 'Scripts/mayHem.py')
-rw-r--r--Scripts/mayHem.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/Scripts/mayHem.py b/Scripts/mayHem.py
new file mode 100644
index 0000000..6ac90d6
--- /dev/null
+++ b/Scripts/mayHem.py
@@ -0,0 +1,30 @@
+import os
+import tkinter as tk
+import time
+root = tk.Tk()
+root.withdraw()
+
+control_c_sequence = '''keydown Shift_L;
+key Left;
+keyup Shift_L;
+keydown Control_L;
+key x;
+keyup Control_L
+'''
+
+left = 'key Left'
+right = 'key Right'
+
+def keypress(sequence):
+ #print(sequence.replace('\n', ''))
+ for item in sequence.replace('\n', '').split(';'):
+ print("xdotool " + item)
+ os.system("xdotool " + item)
+
+
+keypress(right)
+while(True):
+ keypress(control_c_sequence)
+ keypress("keydown Shift_L key " + root.clipboard_get() + " keyup Shift_L")
+ keypress(right)
+ keypress(right)