Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions clipboard-save/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! python3
#!/usr/bin/python3
import pyperclip
import time
import sys
Expand All @@ -14,16 +14,19 @@ def getText():
text = ''
return text


def setFlag(prevText):
if prevText == getText():
flag = False
else:
flag = True
return flag


def showHelp():
print("This is going to be the help")


def combine():
global content
text = ''
Expand All @@ -33,6 +36,7 @@ def combine():
pyperclip.copy(text)
print('[+] Combined text copied to clipboard\n')


def selectiveCombine():
selection = input('>>>>>> ')
selectionData = list(map(int, selection.split()))
Expand All @@ -47,13 +51,15 @@ def selectiveCombine():
pyperclip.copy(text)
print('[+] Seletively combined text copied to clipboard\n')


def showContent():
global content
j = 1
for i in content:
print('[{}] '.format(j)+i)
j=j+1


def getClipboardContent(quick=False):
global text, flag, content
try:
Expand All @@ -76,6 +82,7 @@ def getClipboardContent(quick=False):
if quick:
combine()


if __name__ == '__main__':
while True:
choice = input('[][][] ')
Expand All @@ -94,8 +101,3 @@ def getClipboardContent(quick=False):
if choice.lower() == 'exit':
sys.exit()
time.sleep(1)