Starbug 0 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??? Share this post Link to post Share on other sites
JBeef 0 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 Share this post Link to post Share on other sites
Starbug 0 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 Share this post Link to post Share on other sites
JBeef 0 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]) Share this post Link to post Share on other sites