From 3e4c72f7ffbde90087f772da5cafcd85e4a00e05 Mon Sep 17 00:00:00 2001 From: phil294 Date: Fri, 7 Jul 2023 02:20:45 +0200 Subject: [PATCH] Add `A_IsSuspended` fixes #40 --- docs/index.html | 8 ++++++-- src/run/runner.cr | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 533516c..7a081c8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1650,8 +1650,12 @@



-

# Script Settings

(all except A_NumBatchLines require v1.0.13+) +

# Script Settings

+ + + + @@ -1689,7 +1693,7 @@

# The current floating point number format set by SetFormat.

- + diff --git a/src/run/runner.cr b/src/run/runner.cr index e0ed20a..ef80318 100644 --- a/src/run/runner.cr +++ b/src/run/runner.cr @@ -251,6 +251,7 @@ module Run when "a_username" then Hacks.username when "a_isadmin" then Hacks.username == "root" ? "1" : "0" when "a_computername" then `uname -n` + when "a_issuspended" then @suspension ? "1" : "0" else nil end end
A_IsSuspended# Contains 1 if the script is suspended and 0 otherwise.
A_BatchLines # (synonymous with A_NumBatchLines) The current value as set by SetBatchLines. Examples: 200 or 10ms (depending on format).
A_KeyDelay4lay # The current delay set by SetKeyDelay (always decimal, not hex).