Skip to main content

Launch Auto.js and AutoX.js scripts through Python in Termux.

Project description

Run python3 -m autoxjs -h to learn how to use this package in the console.

The default config is for ozobi's modified AutoX.js version. For Auto.js and old versions of AutoX.js, running python3 -m autoxjs -c intent_component org.autojs.autojs/.external.open.RunIntentActivity to change the package name may be necessary.

In other environments such as QPython 3, Pydroid 3 and AidLux, changing config items am_command, am_subcommand, am_user and temporary_path may be necessary.

In new versions of Termux, config items above can also be modified to use termux-am-socket instead of the slow termux-am.

Use import autoxjs or from autoxjs import * to import this library in your script.

The autoxjs.runString function is used to simply run a JavaScript in a string.

The autoxjs.runFile function is used to run JavaScript files.

The autoxjs.runAutoFile function is used to run Auto.js and AutoX.js recording files.

The autoxjs.Context class is used to call JavaScript codes like RPC.

The autoxjs.requestAutomation function can request the automation service.

The autoxjs.forceStop function can force stop running scripts.

The autoxjs.Location, autoxjs.Recorder and autoxjs.Sensor classes were written as routines, but can also be used as a module. Thus they can be used to access the hardware in the device.

The autoxjs.compressScript function can be used to compress long JavaScript codes, making RPC calling faster.

The autoxjs.bindAvailablePort function can be used to bind a socket server to a port within the customized range.

The autojs.injector.startServer and autojs.injector.stopServer functions are used to manage the RPC server of the autojs library, in order to allow users not to have to start it manually. This library doesn't depend on it, so if you don't use it, just ignore it.

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

autoxjs-1.0.17.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

autoxjs-1.0.17-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file autoxjs-1.0.17.tar.gz.

File metadata

  • Download URL: autoxjs-1.0.17.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for autoxjs-1.0.17.tar.gz
Algorithm Hash digest
SHA256 19c8fec47820ecd84f35e5ec61a28451344d41f871bae0755ed3df269d03fa2e
MD5 5177bd1f259c151ec7898fad3cedd963
BLAKE2b-256 b633dfc9886ecd8274105a8e1011b32f2a70ca38bac6ea825a469a9420736fef

See more details on using hashes here.

File details

Details for the file autoxjs-1.0.17-py3-none-any.whl.

File metadata

  • Download URL: autoxjs-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for autoxjs-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 f31511c98a4143c91dec9caa45cf5265df9236b597b21b1bec61099860940e78
MD5 9664dc5db0ccaed33f8e9f6d7f762401
BLAKE2b-256 9fc1026777dc73efbb9e2b58684675959fc7e7ed7fa39a0473fa3db5268661fb

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