Evil_Has_Survived Posted April 2, 2006 Posted April 2, 2006 (edited) ok this should be a easy one, I have been trying to do it on my own like smoke said thats why I haven't posted in a bit. expandcollapse popup; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") HotKeySet("+!d", "ShowMessage");Shift-Alt-d ;;;; Body of program would go here;;;; If WinExists("Diablo II") Then HotKeySet("{Space}", "close") Else MsgBox(64, "Info", "The game isn“t running!") Exit(0) EndIf Func Close() Send("!{F4}") EndFunc While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(4096,"","This is a message.") EndFuncok I can exit the script but I cannot pause it, I would also like to make this script in to a GUI, I know how to make the basics of a GUI like the box, but how would I create a start botton and a off botton for this script, If i can get help on that part ill do jsut fine Thanksfor the pause botton I think I have to set the pause right.... Edited April 2, 2006 by Evil_Has_Survived Thanks in advance
Evil_Has_Survived Posted April 2, 2006 Author Posted April 2, 2006 does anybody know how I can pause it, and make a gui telling it to run with a simple on off botton thanks Thanks in advance
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