Sign in to follow this  
Followers 0
jackyyll

Repeat/Loop

5 posts in this topic

How do i make my function repeat/loop? this is what i have..

;Start Bot
    Func _IfActive()
    Send('{F9}')
    MouseMove($X, $Y, 0)
    Endfunc

Share this post


Link to post
Share on other sites



While 1
   _IfActive()
WEnd


[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Share this post


Link to post
Share on other sites

Uhh how would that make it repeat? would i put it like this?

;Start Bot
    while 1
    Func _IfActive()
    Send('{F9}')
    MouseMove($X, $Y, 0)
    Endfunc
wend

Share this post


Link to post
Share on other sites

;Start Bot
    while 1
      Sleep(1000)
      _IfActive()
   wend
   
    Func _IfActive()
       Send('{F9}')
       MouseMove($X, $Y, 0)
    Endfunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0