跳到主要內容

Advanced Mode Revamp (高級模式修改)

For Subscribed User we have good news for you
for the latest released of 123Autoit nonroot you are able to do more with Check Points and handle more logic using Advanced Mode + Memory Checkpoint



Once you switched to Advance Mode
all your check point would have a CheckPoint Variable next to it,
the first check point A, 2nd B, and so on, and we will be able to control it later on in Advance Logic


We have added temp Memory variable from var0~var20

you can hold a numeric during the automation, and also allow to change it during the Advance logic

















Here we have an Example for you
"A" is the Checkpoint result, it is going to be true or false, make sure A is defined in your page

"var0" is a memory to keep a number value
"result" is a return for this overall check for this page if it is confirm.

so the logic means if A is true, then var0 set to 1
and if A is false, then var0 set to 2

and change this page from [Action Then Break] to [Action And Continue]
so it will proceed to the next page


for the next following page we will add a normal Memory check point
if var0==1 then do some action

and we add another page add a normal memory check point
if var0==2 then do something else



(2018-01-30) to test if your device is currently using Javascript Code Engine or Bsh Code Engine try to do code  the following in your advance code
var array=new int[1];

if it return Error then you are using Javascript Code Engine (Faster)
if not then you are using Bsh Code(much Slower)



Here is a quick reference for Bsh Code

Code for Function:
int addValueTwo(value){
return value+2;
}
Usage:
var0=actionPerform(2);

Result:
var0=4;

Code for Array:
var array=new int[1];
array[0]=100;
var0=array[0];

Result:
var0=100;


Compare String:

if( value.equals("whatever"))

Compare value:
if(  value==0)



for Coding Reference
here is a quick reference for coding

Code for Function:
int addValueTwo(value){
return value+2;
}
Usage:
var0=actionPerform(2);

Result:
var0=4;

Code for Array:
var array=new int[1];
array[0]=100;
var0=array[0];

Result:
var0=100;


Compare String:

if( value.equals("whatever"))

Compare value:
if(  value==0)


It is now using Javascript as code language


Debug:
debugMessage
debugMessage available for show value of variable during play time or validate

debugMessage="testing123"



Other API:
 2Coords Col Match
text: [Variable]_hexColor1     possible Value EG:0e1c27  a hex value of the color
text: [Variable]_hexColor2

num: [Variable]_longColor1   possible value EG:924711 a long color value
num: [Variable]_longColor2


EG: if check point is A, then to get the hex value A_hexColor1="0e1c27"


2Coords Col Match = Sel Col
text: [Variable]_hexColor1     possible Value EG:0e1c27  a hex value of the color
text: [Variable]_hexColor2
text: [Variable]_hexColor3

num: [Variable]_longColor1   possible value EG:924711 a long color value
num: [Variable]_longColor2
num: [Variable]_longColor3

num: [Variable]_ckLongColor

num: [Variable]_ckHexColor


 Coord Col Match Sel Col
 2Coords Col Match
text: [Variable]_hexColor1     possible Value EG:0e1c27  a hex value of the color
text: [Variable]_hexColor2

num: [Variable]_longColor1   possible value EG:924711 a long color value
num: [Variable]_longColor2


Coord Col Match
text: [Variable]_hexColor     possible Value EG:0e1c27  a hex value of the color

num: [Variable]_longColor   possible value EG:924711 a long color value

num: [Variable]_ckLongColor

num: [Variable]_ckHexColor


 OCR Check
text: [Variable]_ocrText   

num: [Variable]_ocrNum   

留言

這個網誌中的熱門文章

Alternative Daemon Service

Accessibility Service Download Google Play : >> https://play.google.com/store/apps/details?id=com.autoit.nonroot.accessibility Video Instruction For Android Device 7.0+  - 123Autoit NON ROOT >> https://play.google.com/store/apps/details?id=com.autoit.nonroot - Pretouch Semi auto >> https://play.google.com/store/apps/details?id=com.autoit.pretouch now enable to work without Daemon Service without computer updated: faster and lighter   Newer version: added UI interaction     for 123Autoit nonROOT click to open click open accessibility turn on the 123Autoit Accessibility click on three dots click on three strips check the check box Alternative Service Android 7.0+ and download the apk and install For Pretouch Semi Auto  Open pretouch semi auto click on the blue circle click on Edit

123Autoit nonroot tutorial

Background Info: This App doesn't require Root Permission, it works by setting up Page with Checkpoints and Action with SC(screen captured images), if all checkpoints matched then it will trigger Action. So CheckPoint and Action, to create a complete Automation Flow, pages with checkpoints and Action in it. Assumption your device is start the Accessibility Service and your android version is 7.0 or above For General Question: check out here if not please start take a look here for android Device 7.0 or above (no Computer required) http://123autoit.blogspot.com/2016/08/123autoit-non-root-daemon-service.html for android device Under 7.0 (which require Computer to complete the setup) http://123autoit.blogspot.com/2016/08/123autoit-non-root-daemon-service.html All Test is done using this app. or you can use any other app, it would work the same. https://play.google.com/store/apps/details?id=com.test.automate 1 tutorial: when see this title Red rectangle in th

Revamp Basic tutorial

Assume that you have started the daemon service, and install the 123Autoit- nonRoot and everything is working in order. So here is what you need to do, think of a process you want to perform, and on what application, and under what situation. 1)       Start up the 123Autoit-nonroot, you should be able to see floating buttons on the top right corner. 2)       Start up an app you want to automate 3)       On the floating buttons, click the “…” buttons to reveal the sub menu Click the “SC” button to perform a screen capture on the current active app, in my case, I am currently on a Built in Launcher. And Wait(screen capture does take times depends on your device performance) 4)       It should take you to the Edit mode 5)       So first we need to add Check points to define current page, Swipe out the Left Menu and select the Group B 2 nd option(Coord Col Match) What it does, it checks the checkpoint image pixel against the screen image, if