Skip to content

Framework for creating better, faster and shorter AutoTouch scripts

License

Notifications You must be signed in to change notification settings

sentrip/AutoTouchPlus

Repository files navigation

AutoTouchPlus

GitHub release

A framework for creating better, faster and shorter AutoTouch scripts

Features

  • Screen watching and advanced interaction
  • Web requests and JSON parsing
  • Unit-testing framework based on Python's pytest
  • Functions for system and file operations
  • Logging utilities for selective logging
  • Object orientation (classes and inheritance)
  • Python's list, dict and set objects
  • Many of Python's builtins (such as map, filter, sorted, reversed, ...)
  • Context managers, with statement, exceptions and exception-handling similar to Python

Installation

To install AutoTouchPlus, there are 3 methods. For ease of installation and usage, all of the modules in AutoTouchPlus are compiled into a single file - "AutoTouchPlus.lua" - that can be imported. When installed just run "tests.lua" to ensure everything works and you're ready to go!

Install from device:

  1. Copy the raw text from install.lua and paste it into a new script in AutoTouch.
  2. Save and run the script, and you're ready to go!

Install from computer (using developer install script):

Run the following commands on your computer (requires scp installed on your device)

git clone https://github.com/sentrip/AutoTouchPlus.git
cd AutoTouchPlus
./dev.py install -ip YOUR.PHONES.IP.ADDRESS

Install with manual file copy:

  1. Download AutoTouchPlus.lua and tests.lua from the latest release
  2. Copy AutoTouchPlus.lua and tests.lua to /var/mobile/Library/AutoTouch/Scripts/

Usage

To use AutoTouchPlus, simply import it at the beginning of your script:

require("AutoTouchPlus")

-- lets print some nested objects!
print(str(list{1, 2, (','):join{'a', 'b'}, sorted(list{5, 4, 3})}))

Contributing

Make a pull request

About

Framework for creating better, faster and shorter AutoTouch scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages