supersurfr Posted August 15, 2007 Share Posted August 15, 2007 (edited) 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 August 15, 2007 by supersurfr Link to comment Share on other sites More sharing options...
GreenHouse Posted August 15, 2007 Share Posted August 15, 2007 I am really new at autoit aswell, but shouldn't it just end when you end the function? Wat does the code after the function call look like? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now