跳到主要內容

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   

留言