Sign in to follow this  
Followers 0
sshrum

Changes in msgbox() reaction? Possible bug or expected behavior?

2 posts in this topic

I'm pretty sure that I was able to click on the 'X' (close) button before to have a msgbox dialog close but when I try it now with AutoIT 3.2.10.0 + Vista = nothing happens

I wrote a script a while back that allows one to create msgbox prompts that can trigger calls to apps/batch files/etc.

http://www.shrum.net/cats.php?dir=/code/prompter

I just tried to 'X' a msgbox dialog but nothing happens. I did a quick test script to confirm (try clicking the 'X' on the first msgbox):

$iResult = msgbox(4,"test","blah")
msgbox(0,"test", $iResult)

Is this a bug? If this is expected behavior, why even display the 'X'? If anything, shouldn't this trow a -1 result or a error (as it did in the past)?

Seems like a bug to me. Can't say when this behavior appeared...Vista? newer builds of AutoIT?


Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Share this post


Link to post
Share on other sites

I'm pretty sure that I was able to click on the 'X' (close) button before to have a msgbox dialog close but when I try it now with AutoIT 3.2.10.0 + Vista = nothing happens

I wrote a script a while back that allows one to create msgbox prompts that can trigger calls to apps/batch files/etc.

http://www.shrum.net/cats.php?dir=/code/prompter

I just tried to 'X' a msgbox dialog but nothing happens. I did a quick test script to confirm (try clicking the 'X' on the first msgbox):

$iResult = msgbox(4,"test","blah")
msgbox(0,"test", $iResult)

Is this a bug? If this is expected behavior, why even display the 'X'? If anything, shouldn't this trow a -1 result or a error (as it did in the past)?

Seems like a bug to me. Can't say when this behavior appeared...Vista? newer builds of AutoIT?

I have not been afflicted with Vista yet, but with XP any option selection that has more than just the OK button has the "X" shown but disabled. In your example above it is disabled on the first and enabled on the second. This makes sense because it forces one of the preselected return options to be used (i.e. Yes, No, or timeout) and MsgBox() does not return @error like InputBox() does for cancel.

Not only is it not a bug, I don't think it's a recent change either.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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