Starbug Posted September 30, 2007 Posted September 30, 2007 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???
JBeef Posted September 30, 2007 Posted September 30, 2007 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
Starbug Posted September 30, 2007 Author Posted September 30, 2007 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
JBeef Posted September 30, 2007 Posted September 30, 2007 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])
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now