# -- Defining the elements for the Components, which are going to be Dropdowns that are going to filter our Data periods_str = list(mx_trade['Period'].unique()) # time periods of our data options_dd = [{ 'label': period, 'value': period } for period in periods_str ] # dict of periods_str to use on the Dash Component # MAP # -- You'll need a API Token to display the map, visit MAPBOX to create an account ... # -- Inputting mapbox's api token mapbx_api = password(text='MAPBOX API TOKEN', title='MAPBOX API TOKEN', mask='*') # -- Creating the Map through mx_map which is a function from another py.file mx = mx_map(mx_trade) # -- Dash_Deck is needed here to insert the map in our Dash App's Layout deck_component = dash_deck.DeckGL(mx.to_json(), id="deck-gl", mapboxKey=mapbx_api) # Preparing the Visualizations' Attributes # -- Get colors from: https://hihayk.github.io/scale/#128/128/0/99/-360/360/100/100/1D9A6C/29/154/108/black colors = '''#FF00FF #FF00FF #FF00FF #FF00C5 #FF008B #FF0051 #FF0019 #FF0000 #FF0000 #FF0000 #FF0000 #FF3000 #FF6600 #FF9B00 #FFCF00 #FFFF00 #FFFF00 #FFFF00 #FFFF00 #DBFF00 #A9FF00 #79FF00 #4AFF00 #1CFF00 #00FF00 #00FF00 #00FF00 #00FF21 #00FF4E #00FF7A #00FFA4 #00FFCE #00FFF6 #00FFFF #00FFFF #00E3FF #00BBFF #0094FF #006EFF #004AFF #0026FF #0004FF #0000FF #1F00FF #4300FF #6500FF #8600FF #A600FF #C500FF #E301FF #FF03FF #E306FF #C70AFF #AC0FFF #9014FF #7519FF #591EFF #3E23FF #2828FF
import pyautogui # print("곧 시작합니다...") # pyautogui.countdown(3) # print("자동화 시작") #pyautogui.alert("자동화 수행에 실패하였습니다.", "경고") # 확인 버튼만 있는 팝업 #result = pyautogui.confirm("계속 진행하시겠습니까?", "확인") # 확인, 취소 버튼 #print(result) # result = pyautogui.prompt("파일명을 무엇으로 하시겠습니까?", "입력") # 사용자 입력 result = pyautogui.password("암호를 입력하세요") # 암호 입력 print(result)
import pyautogui as pg password = pg.password("Please retype your password", "Password Box", "", "*") print("HAHA! I have your password which is " + password + ".") pg.hotkey'winleft'
from os import putenv import pyautogui from time import * """THE MODULE IS CALLED PYAUTOGUI SO I'M GONNA MAKE A LITTLE REGISTER AND LOGIN PROGRAM SO I'LL NOT BE STRUGGLING TO MAKE IT WITH PYQT5.. :))""" register1 = pyautogui.prompt("Register your email: ", "REGISTER") password1 = pyautogui.password("Register your password: "******"REGISTER") sleep(1) register2 = pyautogui.prompt("Enter your email: ", "LOGIN") password2 = pyautogui.password("Enter your password: "******"LOGIN") while True: if register1 != register2: pyautogui.alert("Wrong email", "EMAIL") register2 = pyautogui.prompt("Enter your email: ", "LOGIN") else: break while True: if password1 != password2: pyautogui.alert("Wrong password", "PASSWORD") password2 = pyautogui.password("Enter your password: "******"LOGIN") else: pyautogui.alert("CONGRATULATIONS, YOU'VE LOGGED SUCCESSFULLY", "CONGRATULATIONS") break
# 三击右键 # pag.click(button='right', clicks=2, interval=0.25) # 滚轮 # 使用函数scroll(),它只接受一个整数。如果值为正往上滚,值为负往下滚。 # pag.scroll(200) # 键盘操作 # 输入字符串 # pag.typewrite('Hello world') # 上面的字符串是一次输入,为了唬人可以延迟输入 # pag.typewrite('Hello world!', 0.1) # Hello worldHello world!Hello worldHello world!Hello world!Hello world!Hello world!Hello world! # pag.keyDown() # 按下某个键 # pag.keyUp() # 松开某个键 # pag.press('f1') # 一次完整的击键,前面两个函数的组合。 # pag.hotkey('ctrl', 'c') # 热键函数 pag.alert('这个消息弹窗是文字+OK按钮') pag.confirm('这个消息弹窗是文字+OK+Cancel按钮') rs = pag.prompt('这个消息弹窗是让用户输入字符串,单击OK') rt = pag.password('这个消息弹窗是让用户输入字符串,单击OK') #返回用户输入的字符串,如果用户什么都不输入,则返回None print(rs, rt) # 通过把pyautogui.PAUSE设置成float或int时间(秒),可以为所有的PyAutoGUI函数增加延迟。 # 默认延迟时间是0.1秒。在函数循环执行的时候,这样做可以让PyAutoGUI运行的慢一点,非常有用。例如: # pag.PAUSE = 2.5 # pag.moveTo(100,100); # pag.click()
import random import pyautogui chars = "abcdefghijklmnopqrstuvwxyz0123456789" charsList = list(chars) password = pyautogui.password("Please enter the password: "******"" while (guessPassword != password): guessPassword = random.choices(charsList, k=len(password)) print("[" + str(guessPassword) + "]") if guessPassword == password: print("The password is: " + "".join(guessPassword)) break
import random import pyautogui import string chars = "abcdefghijklmnopqrstuvwxyz0123456789" # chars = string.printable chars_list = list(chars) password = pyautogui.password("Enter a password : "******"" while (guess_password != password): guess_password = random.choices(chars_list, k=len(password)) print("<==================" + str(guess_password) + "==================>") if (guess_password == list(password)): print("Your password is : " + "".join(guess_password)) break
# Métodos para o MOUSE x, y = pa.position() # retorna uma tupla contendo a posição X e a posição Y do mouse pa.moveTo(largura / 2, altura / 2, duration=3) # Move o mouse para a posição indicada. O parâmetro duration é opcional pa.move(0, 10) # Essa função é um movimento relativo, tomando como base a atual posição do mouse. pa.click() # Clica pa.click(largura / 2, altura - 300, clicks=2, interval=1, button="PRIMARY", duration=3) # Move o cursor para a posição, executando certos clicks, com um certo intervalo, com o botão # PRIMARY(str) e uma duração para mover o mouse. Nenhum desses parâmetros são obrigatórios. pa.scroll(3) # Executa o scroll pra baixo do mouse 3 vezes # pa.click('django.pdf') # Procura na tela onde aparece o texto fornecido e clica nele # Métodos de TECLADO pa.write("texto", interval=0.1) # Escreve um texto fornecido com intervalo de 0.1s em cada caractere pa.press("enter") # aperta um botão informado. Pode passar uma lista com botões. Pode acresccentar o parâmetro # presses=int print(pa.KEY_NAMES) # Retorna a lista dos botões que podem ser utilizados com a função press pa.hotkey("ctrl", "c") # Pressiona mais de um botão. Muito útil para acionar atalhos. pa.keyDown("shift") # Aperta e mantém pra baixo a teclado informada. Deve ser usada com keyUp para soltar a tecla pa.keyUp("shift") # Outros métodos pa.alert(text='teste', title='titulo', button='OK') # Faz aparecer uma janela com os parâmetros dados. O programa pausa e volta quando o usuário # apertar ok pa.confirm(text='Confirm', title='Janela Confirm', buttons=['OK', 'Cancel']) # Aparece uma janela de confirmação pro usuário. print(pa.prompt(text='Prompt', title='Janela Prompt', default='')) # prompt que retorna o que o usuário digitou, pode ser usado sem print pa.password(text='Senha', title='Janela de Senha', default='', mask='*') # prompt para senha
click_activo = str( pag.confirm(text='¿Qué tipo de click desea realizar?', title='Tipo de click', buttons=['Activo', 'Pasivo'])) if click_activo == 'Activo' or click_activo == 'Pasivo': click_activo = click_activo.casefold() break else: pag.alert(text=entrada_no_valida, title='', button='OK') time.sleep(0.5) salir_programa(numero_intentos) numero_intentos = 0 contra = pag.password( text='Introdusca la palabra clave,\n si no tiene una presione ok', title='Palabra clave', mask='X') for loot in lootbox_dic.keys(): texto_lootbox += muestra.format(loot, lootbox_dic[loot][1]) pag.alert(text=texto_lootbox, title='Lootbox disponibles', button='OK') while numero_intentos < numero_max_int_f: numero_intentos += 1 lootbox_auto = str( pag.confirm( text= '¿Desea que el bot ejecute automáticamete el comando de Comprar cajas?', title='Lootbox', buttons=['si', 'no'])) if lootbox_auto == 'si' or lootbox_auto == 'no':
pyautogui.vscroll() pyaautogui.write('https://youtybe.com') pyautogui.press('enter', presses=3) pyautogui.keyDown('shift') pyautogui.keyDown('shift') pyauyogui.hotkey('ctrl', 'a') pyautogui.alert(text='Alert', title='alert box', button='ok') pyautogui.confirm(text='Alert', title='alert box', buttons=['ok', 'cancel']) pyautogui.prompt(text='input', title='input box', default='username') pyautogui.password(text='input', title='input box', default='username', mask='*') pyautogui.PAUSE = 2 pyautogui.moveTo(1350, 750) d = ('hi') pyautogui.screenshot(f'{d}.png' region=(10,10,700,500)) h = 3 while h > 0: pyautogui.moveTo(100, 100, 0.4, pyautogui.easeInOutQuad) pyautogui.moveTo(1350, 750, 0.4, pyautogui.easeInOutQuad) h = h - 1 while True: x,y = pyautogui.position()
import pyautogui as pg # In[4]: pg.alert(text='', title='', button='OK') # In[5]: pg.alert('Your coding file', 'alert box', button='abc') # In[8]: btn = pg.confirm(text='hey', title='s', buttons=['OK', 'Cancel']) if btn == 'OK': print("You selected to delete file") print('Hey') else: print('ooops') # In[11]: pw = pg.prompt(text='d', title='e', default='w') if pw == 'OK': print('jey') else: print('Ops') # In[ ]: pg.password()
print("█████▄▄▀▀█▄▄░░░░▄██▀▀███░░░░▄▄█▀▀▄██████") print("████████▄░▀██▄▄▄█▀░░░░▀██▄▄██▀░▄████████") print("███████████▄░▀██░░░░░░░░██▀░▄███████████") print("███████████████▀░░░░░░░░▀███████████████") print("██████████████▀░░░░░░░░░░▀██████████████") input() import pyautogui as pg pg.alert("ДАААРОВА", "Взлом жопки", button="Взломаем жепку?") age = pg.prompt("Укажите возраст: ", "Подбор очка") print(age) pg.confirm("Вам больше 18?", "Выбор жепки", ("Да, долбите меня полностью", "Нет, оставьте мою жепку")) pg.password("Введите пароль от своего очка ", "Попытка пробития") from colorama import Fore, Back, Style from colorama import init import pyautogui as pg import time init() print(pg.position()) # Fore: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET. # Back: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, RESET. # Style: DIM, NORMAL, BRIGHT, RESET_ALL # НАЧАЛО # print(Fore.GREEN)