Jump to content

Ending a loop within a gui


 Share

Recommended Posts

Hi everyon. I'm really new to this stuff. First i wrote some au3 scripts to do some basic things (change resolutions, buffs) within a game I play (Silkroad Online). they were working gr8, I figured out how to write a basic gui and insert the scripts so they are run by pressing a button, All of them run fine, they are all non looping, except one. I wrote this

Func button_7(); Shield Buff
    
    Send( "{F3}" ); Switch to buff bank
        Sleep(  $wait3 )
        
    Send( "{2}" ); Switch to shield
        Sleep( $wait3 )     
        
    Send( "{1}" ); Grasswalk
        Sleep( $wait3 )
    
    Send( "{7}" ); shield buff
        Sleep( $wait3 )
        
    Send( "{0}" ); switch back to Glaive
        Sleep( $wait2 )
        
    Send( "{F1}" ); Switch back to Attack bank
        Sleep( $wait2 )
        
    

        
EndFunc

but I can't figure out how to end it when I want by either adding another button to kill it or by pressing the button I use to activate it. Before I could end it by right clicking the Icon in the taskbar & exiting. also how would i write a function to keep this window on top with a checkbox?

Edited by supersurfr
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...