Sign in to follow this  
Followers 0
Evil_Has_Survived

Help Please

2 posts in this topic

#1 ·  Posted (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.

; 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.")
EndFunc

ok 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 :)Thanks

for the pause botton I think I have to set the pause right....

Edited by Evil_Has_Survived

Thanks in advance

Share this post


Link to post
Share on other sites



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

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