 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Mats Guest
|
Posted: Fri May 06, 2005 8:09 pm Post subject: No TimeOut for 1-button MsgBoxes |
|
|
Hi!
Maybe the following is a feature and no bug, but it's somehow a little inconsistent:
If i use a msgbox with more than one button (like ok and cancel) and a timeout, i can catch that timeout with "IfMsgBox, Timeout". But if i use the above with only one button and a timeout, the "IfMsgBox" does not see the timeout.
Examples:
| Code: | #z::
msgbox, 1, Timeout Test, Wait 2 seconds for the timeout..., 2
IfMsgBox, Timeout, msgbox, i can see the timeout
return | Everything's fine here!
| Code: | #z::
msgbox, 0, Timeout Test, Wait 2 seconds for the timeout..., 2
IfMsgBox, Timeout, msgbox, i can see the timeout
return | No timeout detected - but the msgbox gets closed after 2 secs!
What am i doing wrong? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Sat May 07, 2005 1:24 pm Post subject: |
|
|
Thanks; this is indeed a bug. However, the following known limitation will still exist after the fix: If the MsgBox contains only an OK button, IfMsgBox will think that the OK button was pressed if the MsgBox times out while its own thread is interrupted by another. This is caused by the peculiarities of the OS's MsgBox feature.
Thanks for reporting it. It will be fixed in the next update.
Edit: It has been fixed in v1.0.33. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|