Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with repeat command!
#2
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
Code:
Copy      Help
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
Code:
Copy      Help
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


Messages In This Thread
Help with repeat command! - by jayillavista - 04-13-2018, 11:29 PM
RE: Help with repeat command! - by Kevin - 04-14-2018, 01:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)