-
-
Save kost/af61d06dc0317b6fde501caea2a38883 to your computer and use it in GitHub Desktop.
Python code to annoy your friend in Windows OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32com.client | |
import time | |
import itertools | |
shell = win32com.client.Dispatch("WScript.Shell") | |
curArr = ["RIGHT", "DOWN", "LEFT", "UP"] | |
for element in itertools.cycle(curArr): | |
shell.SendKeys("^%{" + element + "}", 0) | |
time.sleep(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment