Jump to content

Msgbox help


Recommended Posts

Im still new to this so....

ive got a msgbox that pops up and tells you how may messages are in an inbox but to set it up so if you hit ok it skips down to another part of the script or if you hit cancel it keeps running from that spot.

any ideas?

soupbones

USMC Sys Admin

Link to comment
Share on other sites

You just need to check the return value of the msgbox... here try this;

$iMsgBox = MsgBox(1, "Test", "press my buttons")
MsgBox(0, "", $iMsgBox)

just as an example for what I'm talking about. From there, depending on your script, have something like

If $iMsgBox = (value for yes) then _Function()

if the value does not equal what ok is, the script will just continue

EDIT: wow I knew I was slow but 2 responces down...hmm I need to eat more Wheaties

Edited by someone
While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Link to comment
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
 Share

  • Recently Browsing   0 members

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