diff options
Diffstat (limited to 'Scripts/mayHem.py')
-rw-r--r-- | Scripts/mayHem.py | 30 |
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) |