From 70b65b88ac2119600b68e1a75e3053459d171764 Mon Sep 17 00:00:00 2001 From: jbjjbjjbj Date: Fri, 13 Jan 2017 20:02:01 +0100 Subject: Added new scripts --- Scripts/mayHem.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Scripts/mayHem.py (limited to 'Scripts/mayHem.py') 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) -- cgit v1.2.3