Jump to content

Recommended Posts

Posted

right iv made a button that when pressed displays a msgbox the box displays a yes and no button, can any one tell me how i sense the return value of the yes button i believe its 6. i basically what to sense if the yes button has been pressed then run a function

If $msg = $button30 Then Msgbox(68,"PUP- WARNING","blarblar blar"& @CRLF & "Do You Want To Proced?")

if Return (6) Then washdrive()

something like that but were the if return function actually dose something

Posted

Check out the help file its really good and has exactly what you need.

You want to assign a variable to the msgbox and then check if the variable = 6...

$test = MsgBox(68, "test", "test")

If $test = 6 Then MsgBox(0, "", "yay")

Also did you mean to open two topics for this?

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

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
  • Recently Browsing   0 members

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