Skip to content

Instantly share code, notes, and snippets.

@recolic
Created August 26, 2018 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recolic/ebc5a7431d5084d7c94fa68a8ff06bba to your computer and use it in GitHub Desktop.
Save recolic/ebc5a7431d5084d7c94fa68a8ff06bba to your computer and use it in GitHub Desktop.
Fuck the chinese shits who prevent you from pasting password.
#!/usr/bin/env python3
# Use this script with https://recolic.net/phy and https://recolic.net/phy2
# to avoid typing fucked numbers into page by hand.
# Fuck the chinese shits who prevent you from pasting password.
# E.x. Alibaba bitch
from pykeyboard import PyKeyboard
import time
def virtual_type_array(arrToType, noWait=False):
k = PyKeyboard()
if not noWait:
print('You have 5 seconds to ready for auto-typing.')
time.sleep(5)
for d in arrToType:
k.type_string(str(d))
k.tap_key(k.tab_key)
def _type(s):
k = PyKeyboard()
print('You have 5 seconds to ready for auto-typing.')
time.sleep(5)
k.type_string(str(s))
if __name__ == "__main__":
import sys
_type(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment