Sign in to follow this  
Followers 0
copyleft

Program won't quit

3 posts in this topic

This script won't quit when the cancel button is pressed. How can I fix it? ;)

If FileExists("C:\StoreIt") Then
    MsgBox(65, "Msg", "Standby", 5)
Else
    DirCreate("C:\StoreIt")
    MsgBox(65, "Msg", "Standby", 5)
EndIf
RunWait(@ComSpec & " /c " & 'C:\BAT\delimg.vbs', "", @SW_HIDE)
run("C:\Program Files\Programthatwontquit.exe")
SLEEP(500)
WINKILL("Screen", "We have successfully completed your request")
exit

Share this post


Link to post
Share on other sites



If FileExists("C:\StoreIt") Then
    $a=MsgBox(65, "Msg", "Standby", 5)
if $a=2 then exit
Else
    DirCreate("C:\StoreIt")
    $b=MsgBox(65, "Msg", "Standby", 5)
if $b=2 then exit
EndIf
RunWait(@ComSpec & " /c " & 'C:\BAT\delimg.vbs', "", @SW_HIDE)
run("C:\Program Files\Programthatwontquit.exe")
SLEEP(500)
WINKILL("Screen", "We have successfully completed your request")
exit

think this will help above.


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

Perfect. Many 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