Sign in to follow this  
Followers 0
Unkn0wn

Help needed fixing a loop

2 posts in this topic

Yeah.., i kinda asked the guys in the wrong section (V3) :lmao:

and they partly helped me out, but i'm new to this stuff and still can't figure out how to loop the process every 3 min.., can someone help me out?.., Thanks in advance

;Startloop

;~ random, timer, 180000, 190000
;~ random, logof, 180000, 210000
;~ random, repeat, 2, 5

;Startloop:
winactivate( 'Injustice - Microsoft Internet Explorer')

sleep( 2000 )
send ('{ctrldown}f{ctrlup}')

sleep (3000)

send ('Steal Cheques')

sleep(2000)

send ('{enter}')
send ('{enter}')
send ('{enter}')
sleep (2000)
send ('{esc}')
sleep (2000)

send ('{tab}')
sleep (2000)

send ('{up}')
sleep (2000)

send ('{enter}')

;~ sleep (%timer%)

;Goto, Startloop

Share this post


Link to post
Share on other sites



If your new to AutoIt then v3 maybe a better option to learn. Perhaps more to learn in v3 but that also means better programmic control with scripts.

My guess at what you want shown below.

;Startloop

;~ random, timer, 180000, 190000
;~ random, logof, 180000, 210000
;~ random, repeat, 2, 5

Startloop:
winactivate, Injustice - Microsoft Internet Explorer

sleep, 2000
send, {ctrldown}f{ctrlup}

sleep, 3000

send, Steal Cheques

sleep, 2000

send, {enter 3}

sleep, 2000
send, {esc}
sleep, 2000

send, {tab}
sleep, 2000

send, {up}
sleep, 2000

send, {enter}

;~ sleep (%timer%)
Sleep, 180000
Goto, Startloop

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0