|
Post by konstantinq on May 16, 2024 12:06:58 GMT
In this topic, I want to collect the basic ankuLua scripts in an easy-to-understand format that will replace other autoclickers. (com.ksxkq.autoclick for example). So, people without special programmer education can build their own scripts (copy paste, using their own coordinates and images from snap and play) from this examples:
If If found image Go to action or group of actions:
?
If not found image: stop script and write to debug log "X" message with other info (like string and image name, etc...):
?
continue search for "N" seconds.
If not found image: start search for other images from list (untill end of list):
?
And others (plan to edit this topic after solutions found).
|
|
|
Post by konstantinq on May 16, 2024 12:07:10 GMT
Instead of dimming your screen while play macro, you can completely turn off backlight with superuser (root) shell command "su":
echo 0 >/sys/class/leds/lcd-backlight/brightness Alternative path:
echo 0 >/sys/class/backlight/backlight/brightness And turn on with:
echo 100 >/sys/class/leds/lcd-backlight/brightness It can be triggered with app MacroDroid (AutoMate) floating button, or volume button (or another trigger):
For example MacroDroid app: Make trigger you want (in MacroDroid, and first action inversion logical variable true/false,
then add shell commands for turn off and turn on backlight on screen with limitation if variable "true" and other for only false.
|
|
|
Post by konstantinq on May 16, 2024 12:07:23 GMT
Reserved 2
|
|
|
Post by konstantinq on May 16, 2024 12:11:13 GMT
Looking for script Repeat action "N" times. Planning to edit after solutions found. i = 0; N = 15 --number or repeats. repeat --paste action here i = i + 1 until i > N this "N" work for whole script until it will be changed below? So when set 1 time its enough for whole script? Is it possible to use phrases as variables? For purposes of this topic, i think developing new basic script for record actions can be helpful. like this one ankulua.boards.net/post/5697/threadFor example possible to choose "option" if you want to record group of actions, so script put those to one table, instead of standard of snap and play " each 1 action for new 1 table". Also for debug purpose while play instead of click - show (draw) coordinate on screen. (For picture region search show region and the degree of similarity of the image at the moment)
|
|