| View previous topic :: View next topic |
| Author |
Message |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Sat Dec 08, 2007 6:55 am Post subject: A_IsCritical, A_IsPaused |
|
|
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 |
|
 |
Trikster
Joined: 15 Jul 2007 Posts: 1224 Location: Enterprise, Alabama
|
Posted: Sat Dec 08, 2007 8:32 am Post subject: |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2739 Location: Australia, Qld
|
Posted: Sat Dec 08, 2007 9:04 am Post subject: |
|
|
| 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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3652 Location: Belgrade
|
Posted: Sun Dec 09, 2007 12:41 pm Post subject: |
|
|
i agree _________________
 |
|
| Back to top |
|
 |
|