Created
May 17, 2018 06:16
-
-
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
This file contains 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
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