Skip to content

Instantly share code, notes, and snippets.

@cryocaustik
Created May 17, 2018 06:16
Show Gist options
  • Save cryocaustik/3d4009f97b6a66ee5f9d825b166fa715 to your computer and use it in GitHub Desktop.
Save cryocaustik/3d4009f97b6a66ee5f9d825b166fa715 to your computer and use it in GitHub Desktop.
copy return delimited string from clipboard and then paste and submit each entry
def copypaste():
_list = pc.paste().split('\n')
for indx, _item in enumerate(_list):
if indx == 0:
_cd = list(range(5))
_cd.reverse()
for _c in _cd:
print('copy pasta in {}...'.format(_c))
sleep(1)
pc.copy(_item)
pg.keyDown('ctrl')
pg.keyDown('v')
pg.keyUp('v')
pg.keyUp('ctrl')
pg.keyDown('enter')
pg.keyUp('enter')
print('copy pasta is done!')
print('total values: {}'.format(len(_list)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment