AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

No TimeOut for 1-button MsgBoxes

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Mats
Guest





PostPosted: Fri May 06, 2005 8:09 pm    Post subject: No TimeOut for 1-button MsgBoxes Reply with quote

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

PostPosted: Sat May 07, 2005 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group