Пример #1
0
 def copypasta_mode():
     while True:
         cpy(copypasta)
         time.sleep(0.69)
         pyautogui.hotkey('ctrl', 'v', interval=0.15)
         pyautogui.press('enter')
         time.sleep(1)
         if flags['r']:
             pyautogui.press('a')
             pyautogui.press('backspace')
             pyautogui.press('up')
             pyautogui.hotkey('ctrl', 'a', interval=0.15)
             pyautogui.press('backspace')
             pyautogui.press('enter')
             time.sleep(1)
             pyautogui.press('enter')
         time.sleep(delay)
Пример #2
0
 def txt_mode():
     while True:
         s = choice(txt)
         if write_mode:
             pyautogui.write(s, interval=0.1)
         else:
             cpy(s)
             time.sleep(0.69)
             pyautogui.hotkey('ctrl', 'v', interval=0.15)
         pyautogui.press('enter')
         time.sleep(1)
         if flags['r']:
             pyautogui.press('a')
             pyautogui.press('backspace')
             pyautogui.press('up')
             pyautogui.hotkey('ctrl', 'a', interval=0.15)
             pyautogui.press('backspace')
             pyautogui.press('enter')
             time.sleep(1)
             pyautogui.press('enter')
         time.sleep(delay)
Пример #3
0
 def gg():
     sleep(3)
     cpy('!p gooba earrape')
     pyautogui.hotkey('ctrl', 'v')
     pyautogui.press('enter')
     cpy('-p gooba earrape')
     pyautogui.hotkey('ctrl', 'v')
     pyautogui.press('enter')
     cpy('!loop')
     pyautogui.hotkey('ctrl', 'v')
     pyautogui.press('enter')
     cpy('-loop')
     pyautogui.hotkey('ctrl', 'v')
     pyautogui.press('enter')
Пример #4
0
 async def nh_mode():
     nhcode = nh.valid_url()
     while True:
         s = await nhcode
         if write_mode:
             pyautogui.write(s, interval=0.1)
         else:
             cpy(s)
             await asyncio.sleep(0.69)
             pyautogui.hotkey('ctrl', 'v', interval=0.15)
         pyautogui.press('enter')
         await asyncio.sleep(1)
         if flags['r']:
             pyautogui.press('a')
             pyautogui.press('backspace')
             pyautogui.press('up')
             pyautogui.hotkey('ctrl', 'a', interval=0.15)
             pyautogui.press('backspace')
             pyautogui.press('enter')
             await asyncio.sleep(1)
             pyautogui.press('enter')
         nhcode = asyncio.create_task(nh.valid_url())
         schleep = asyncio.create_task(asyncio.sleep(delay))
         await schleep
Пример #5
0
def wowee(s):
    cpy(s)
    ph('ctrl', 'v')
    pp('enter')
Пример #6
0
  (\s*(ext|x|ext.)\s*(\d{2,5}))?
)''', re.VERBOSE)

# 電子メールの正規表現
email_regex = re.compile(
    r'''(
  [a-zA-Z0-9._%+-]+ # ユーザ名
  @                 # @ 記号
  [a-zA-Z0-9.-]+    # ドメイン名
  (\.[a-zA-Z]{2,4}) # ドットなんとか
)''', re.VERBOSE)

text = str(pyperclip.paste())
matches = []
for groups in phone_regrex.findall(text):
    phone_num = '-'.join([groups[1], groups[3], groups[5]])
    if groups[8] != '':
        phone_num += ' x' + groups[8]
    matches.append(phone_num)

for groups in email_regex.findall(text):
    matches.append(groups[0])

# 検索結果をクリップボードに貼付
if len(matches) > 0:
    pyperclip.cpy('\n'.join(matches))
    print('クリップボードにコピーしました:')
    print('\n'.join(matches))
else:
    print('電話番号やメールアドレスは見つかりませんでした')