Sign in to follow this  
Followers 0
stackover

Exit Loops

1 post in this topic

Im having problems do 2 functions. Start a function and when I call second function they stop first function and start the new one. Is possible to do that .. my code for two functions is:

Func AEMode1()
    

    Call ( "RequestOff" )
    Sleep(200)
$ExitSkillBotAE =1
    $ContAEMode1 = TimerInit()
    Do
        If $ExitSkillBotAE <> 1 Then
            ExitLoop
        EndIf   
        If TimerDiff($ContAEMode1) > $ExitSkillBotAE Then
            MouseUp ("Right")
    Sleep (80)
    MouseMove($AE1_LX, $AE1_LY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RX, $AE1_RY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_LUUX, $AE1_LUUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RUUX, $AE1_RUUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_LDX, $AE1_LDY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RDX, $AE1_RDY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_LUX, $AE1_LUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RUX, $AE1_RUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_UX, $AE1_UY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_DX, $AE1_DY ,1)
    Call ("SkillBotAE")
            $ContAEMode1 = TimerInit()
        EndIf
    Until TimerDiff($ContAEMode1) > $ExitSkillBotAE+10

EndFunc

Func AEMode2()
    
    Call ( "RequestOff" )
    Sleep(200)
    $ExitSkillBotAE =2
    $ContAEMode1 = TimerInit()
    Do
        If $ExitSkillBotAE <> 1 Then
            ExitLoop
        EndIf   
        If TimerDiff($ContAEMode1) > $ExitSkillBotAE Then
            MouseUp ("Right")
            Sleep (80)
    MouseUp ("Right")
    Sleep (80)
    MouseMove($AE1_LX, $AE1_LY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_LUX, $AE1_LUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_LUUX, $AE1_LUUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_UX, $AE1_UY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RUUX, $AE1_RUUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RUX, $AE1_RUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RX, $AE1_RY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RUX, $AE1_RUY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_RDX, $AE1_RDY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_DX, $AE1_DY ,1)
    Call ("SkillBotAE")
    MouseMove($AE1_LDX, $AE1_LDY ,1)
    Call ("SkillBotAE")
            $ContAEMode1 = TimerInit()
        EndIf
    Until TimerDiff($ContAEMode1) > $ExitSkillBotAE+10

EndFunc

Plz any one help me./

Thanks

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