Sign in to follow this  
Followers 0
Starbug

MSGBOX question

4 posts in this topic

i need to set a MSGBOX so that its in a way forces a responce.

at present i have

MsgBox(0+48+0, "Error!!", "Please Fill Out the advise description Sections")

but when the error pops up, the user can move it out the way and still use the main program.

I want it so that if you attempt to click the main program window, it will "beep" at you, forcing you to click OK on the msgbox

any ideas how???

Share this post


Link to post
Share on other sites



Send("#r")
WinWait("Run")
$hwnd = WinGetHandle("Run")

$ret = DLLCall("user32.dll","int","MessageBox","hwnd",$hwnd, _
        "str","your say","str","your title","int",48)

WinClose($hwnd)

MsgBox(4096,"","you say: " & $ret[0])

you do msgbox - crazy ~Jap

Share this post


Link to post
Share on other sites

PC's at work are locked down. I cant open a run box due to restrictions :)

this must be able to run on these PC's

Share this post


Link to post
Share on other sites

awww siwry-

$hwnd = WinGetHandle("you stupid window")

$ret = DLLCall("user32.dll","int","MessageBox","hwnd",$hwnd, _
        "str","your say","str","your title","int",48)

WinClose($hwnd)

MsgBox(4096,"","you say: " & $ret[0])

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