Skip to main content

No project description provided

Project description

pacote para criação de automações

Para importar:

from criar_automacoes import Automatization, pyautogui, sg,Thread, kb, Gerar_Script_Automacao


Gerar_Script_Automacao()

Estrutura básica de uma automação:

from criar_automacoes import *

p = Automatization()
try:
    p.CareegarPontos('pontos')
except:
    #Esta parte eh apenas na criacao do codigo
    listadepontos = ['cruz', 'criar_novo_contato', 'campo_nome', 'telefone_cruz', 'celular', 'campo_telefone', 'ok']    
    for i in listadepontos:
        i = p.Criar_ponto(i)
        if i == None:
            break

    if i != None:
        p.SalvarPontos('pontos')

# Define o metodo Main
def Main():
    p.CareegarPontos('pontos')

    cruz = p.Coordenada('cruz')
    criar_novo_contato = p.Coordenada('criar_novo_contato')
    campo_nome = p.Coordenada('campo_nome')
    telefone_cruz = p.Coordenada('telefone_cruz')
    celular = p.Coordenada('celular')
    campo_telefone = p.Coordenada('campo_telefone')
    ok = p.Coordenada('ok')

    pyautogui.sleep(2)
    t = 1
    pyautogui.click(cruz, duration=t)
    pyautogui.sleep(0.5)
    pyautogui.click(criar_novo_contato, duration=t)
    pyautogui.sleep(0.5)
    pyautogui.click(campo_nome, duration=t)
    pyautogui.sleep(0.5)
    pyautogui.click(telefone_cruz, duration=t)
    pyautogui.sleep(0.5)
    pyautogui.click(celular, duration=t)
    pyautogui.sleep(0.5)
    pyautogui.click(campo_telefone, duration=t)
    pyautogui.sleep(0.5)
    pyautogui.click(ok, duration=t)

def Configurar():
    p.CareegarPontos('pontos')
    p.Configurar()

def Rodar():
    print(f'''
Pressione 'shift+space' para rodar a automacao
Pressione 'config' para configurar os pontos da tela
    '''
    )
    kb.add_word_listener('config', Configurar)
    kb.add_hotkey('shift+space', Main)
    kb.wait()
if __name__ == '__main__':
    Rodar()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

criar_automacoes-0.1.7.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

criar_automacoes-0.1.7-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file criar_automacoes-0.1.7.tar.gz.

File metadata

  • Download URL: criar_automacoes-0.1.7.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Windows/10

File hashes

Hashes for criar_automacoes-0.1.7.tar.gz
Algorithm Hash digest
SHA256 37483181b305075399781360b385bda412a17614e48e8dc3a4d990d2df964f4c
MD5 9596455b2ae9f53f0d6c2b7edc95a629
BLAKE2b-256 0aee001fad69ec48320012e2ac7db30bd62375577d83ec4397554400b1f15bbb

See more details on using hashes here.

File details

Details for the file criar_automacoes-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: criar_automacoes-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Windows/10

File hashes

Hashes for criar_automacoes-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 953fdf4fb7cd1400ef64066c51054d62e9b4f26e401bfe23788e599ec6dad054
MD5 7bfe28a4fdb90ea9d938eb707f69e9c9
BLAKE2b-256 ef1c94805009da4c351a23c171d02aba784b81c61edae146b71b46bc8287dc43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page