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 

A_IsCritical, A_IsPaused

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Sat Dec 08, 2007 6:55 am    Post subject: A_IsCritical, A_IsPaused Reply with quote

Sometimes it is necessary to enable "Critical" for a function, but not the whole thread. Currently there seems to be no way to determine the previous Critical setting so that the function can restore it before returning.

I suggest the introduction of a new built-in variable: A_IsCritical.

Similarly, A_IsPaused would be useful, though we already have a decent script alternative.
Back to top
View user's profile Send private message
Trikster



Joined: 15 Jul 2007
Posts: 1224
Location: Enterprise, Alabama

PostPosted: Sat Dec 08, 2007 8:32 am    Post subject: Reply with quote

And, how would one check for a script being paused from within the script its self? Or are you talking about another script monetring some other script?

[Sorry for spelling mistakes--]
_________________
ScriptPad | ~dieom | dieom | izwian2k7 | Ian | God
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2739
Location: Australia, Qld

PostPosted: Sat Dec 08, 2007 9:04 am    Post subject: Reply with quote

A_IsPaused would correspond to global_struct.UnderlyingThreadIsPaused. i.e. It would indicate whether the underlying thread is paused, not whether the script is currently paused. (If you press a hotkey when the script is paused, it will unpause, execute the hotkey, then pause again.)
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3652
Location: Belgrade

PostPosted: Sun Dec 09, 2007 12:41 pm    Post subject: Reply with quote

i agree
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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