04-14-2018, 01:36 PM
from a quick glance your error codes are because your using a macro which can only be run once and cannot be run again till it has completed all the code
but also you seen to be doing mouse clicks in the same window so i there is no need for all the declarations on the same window. Also you cannot declare the same variable twice.
slightly simplified your code
Macro Macro2
if you need it to repeat the whole sequence use rep at the beginning
Macro Macro2
but also you seen to be doing mouse clicks in the same window so i there is no need for all the declarations on the same window. Also you cannot declare the same variable twice.
slightly simplified your code
Macro Macro2
int w=win("Bluestacks App Player" "*.Window.*")
lef 137 406 w 1 ;; '_ctl.Window'
5
lef 464 492 w 1 ;; '_ctl.Window'
5
lef 372 551 w 1 ;; '_ctl.Window'
key "Hey You"
lef 932 552 w 1 ;; '_ctl.Window'
5
lef 27 73 w1 ;; '_ctl.Window'
5
lef 28 70 w 1 ;; '_ctl.Window'
5
lef 246 410 w1 ;; '_ctl.Window'
5
lef 464 492 w 1 ;; '_ctl.Window'
5
lef 372 551 w 1 ;; '_ctl.Window'
key "Hey You"
lef 932 552 w1 ;; '_ctl.Window'
5
lef 27 73 w 1 ;; '_ctl.Window'
5
lef 28 70 w 1 ;; '_ctl.Window'
5
if you need it to repeat the whole sequence use rep at the beginning
Macro Macro2
int w=win("Bluestacks App Player" "*.Window.*")
rep 2
,lef 137 406 w 1 ;; '_ctl.Window'
,5
,lef 464 492 w 1 ;; '_ctl.Window'
,5
,lef 372 551 w 1 ;; '_ctl.Window'
,key "Hey You"
,lef 932 552 w 1 ;; '_ctl.Window'
,5
,lef 27 73 w1 ;; '_ctl.Window'
,5
,lef 28 70 w 1 ;; '_ctl.Window'
,5
,lef 246 410 w1 ;; '_ctl.Window'
,5
,lef 464 492 w 1 ;; '_ctl.Window'
,5
,lef 372 551 w 1 ;; '_ctl.Window'
,key "Hey You"
,lef 932 552 w1 ;; '_ctl.Window'
,5
,lef 27 73 w 1 ;; '_ctl.Window'
,5
,lef 28 70 w 1 ;; '_ctl.Window'
,5