Skip to content

lyz508/Auto-Operation-on-Computer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto Type to Screen

  • Automatically work on computer
  • Script base
  • WPF for ui design

Requirement

  • re
  • time
  • pyautogui
  • pyperclick
  • os (flush CLI, Path)
  • dotnet environment (Optional, can simply use demo.py)

Auto Script

WPF_example

System cmd:

<CMD> <sec or space>;
  • commands for interpreter
  1. pause
  2. gain_mouse_l
    • loop to sequential gain mouse position
    • as an auxiliary tools for mouse cmd
  3. gain_mouse
  4. gain_string

Mouse cmd:

<CMD> <x>, <y>;
  • commands for mouse function
  • Must provide X, Y.
  1. click
  2. move_to

Keyboard cmd:

Press Command

<press_CMD> <key or specific word>
press enter;
keydown backspace;
keyup backspace;
  • specific word: 'enter', 'ctrl'
  • MIND: IF USE KEYDOWN, THEN MUST USE KEYUP BEFORE THE SCRIPTS!!!!!
  1. press
  2. keydown
  3. keyup

Other Command

  1. hotkey: for combinational key press
    hotkey <key1> <key2>
    # ex
    hotkey ctrl, c;
    
  2. write: for input on keyboard
    write meg=<messages>;
    # ex
    write meg=Hello World!!!;
    
    • if want to input several lines, leave empty on meg, then a function will be executed to accept the article.

Manual (for demo.py)

comlex_work

  • Choose Mode:
    1. Simple Type
    2. Read Script

Simple Type

- Basic use of auto click and input
- Type to specified position
- can set loop **times, interval, character** between loop.
  1. Full process
    • Specified -> Input Message -> Type
  2. Type with current settings
  3. Change Settings
  4. Show settings
  5. Save current settings
    • default file name: setting.txt
  6. Load formor settings
  7. Back.

Script

  • Read Script File
  1. Default script name (autoScript.txt)
  2. Enter script name
  3. Show avalible
    • show avalible files in current directory
  4. Back.

Update & Schedule

Update

2021.8.22

  • Complete a simple intepreter, which can deal with commands about mouse action and keyboard action.
  • Change repository name: AutoTypeToScreen -> Auto-Operation-on-Computer
  • Update detailed README

2021.8.23

  • Add MVC for gui
    • M: libs.translator
    • V: autoViewer.csproj
    • C: autoController.py
  • with WPF
  • reformat README

Schedule

Update Record function

  • scheduled date: 2021.8.21
  • Will be able to record the actions
  • can afford complex work
  • Complete: 2021.8.22

Loop Support

  • scheduled date: 2021.8.22
  • Will support loop in scripts

Combinational & Coordination on commands

  • scheduled date: 2021.8.22
  • will support mouse drag

Multiple on Write Input

  • scheduled date: 2021.8.22
  • Problem:
    • when using repr(), colon wont be specified by re expression
    • using temp solution -> call handler function (read_message())
  • Expected Solution
    • Optimized re exp.

About

Automatically control via python script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published