boringduck Posted February 17, 2004 Share Posted February 17, 2004 Hey, Is there a way to set your msgbox on top of your applications, so the user needs to answer the msgbox before he can continue working? Is there also a way to change the default value after timeout in the msgbox(3,"") now its always ok but it should be cancel? Thanks for the help.... Link to comment Share on other sites More sharing options...
GrahamS Posted February 17, 2004 Share Posted February 17, 2004 Try a SYSTEM_MODAL message box, using the top-most attribute. The timeout is the fourth parameter, so MsgBox(4096 + 262144 + 3, "Title", "Test", 10) should be a system modal message box with a 10 second timeout GrahamS Link to comment Share on other sites More sharing options...
boringduck Posted February 17, 2004 Author Share Posted February 17, 2004 This is already great... now is it possible to set the timeout value on cancel instead of OK???? Regards Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 17, 2004 Administrators Share Posted February 17, 2004 ? MsgBox returns -1 when it times out. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
boringduck Posted February 17, 2004 Author Share Posted February 17, 2004 If you do this : MsgBox(4096 + 262144 + 3, "Title", "Test", 10) after 10 seconds he will close the msgbox with the ok buttom automaticly. this should be the cancel buttom..... Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 17, 2004 Administrators Share Posted February 17, 2004 $ans = MsgBox(4096 + 262144 + 3, "Title", "Test", 10) MsgBox(0, "", $ans) Prints -1 = time out Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
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