Skip to content

Commit

Permalink
Add A_IsSuspended
Browse files Browse the repository at this point in the history
fixes #40
  • Loading branch information
phil294 committed Jul 7, 2023
1 parent 3711e02 commit 3e4c72f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1650,8 +1650,12 @@ <h4 class="calibre25"><a id="Variables.htm__date" href="#Variables.htm__date" cl
</tbody>
</table>
<br class="calibre12" /><br class="calibre12" />
<h4 class="calibre25"><a id="Variables.htm__settings" href="#Variables.htm__settings" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> Script Settings</h4> (all except A_NumBatchLines require v1.0.13+) <table border="1" width="100%" class="calibre1">
<h4 class="calibre25"><a id="Variables.htm__settings" href="#Variables.htm__settings" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> Script Settings</h4><table border="1" width="100%" class="calibre1">
<tbody class="calibre2">
<tr class="calibre3">
<td class="calibre4">A_IsSuspended</td>
<td class="calibre4"><a id="Variables.htm__IsSuspended" href="#Variables.htm__IsSuspended" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> Contains 1 if the script is <a href="#Suspend.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">suspended</a> and 0 otherwise.</td>
</tr>
<tr class="calibre3">
<td class="calibre4">A_BatchLines</td>
<td class="calibre4 tbd"><a id="Variables.htm__BatchLines" href="#Variables.htm__BatchLines" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> (synonymous with A_NumBatchLines) The current value as set by <a href="#SetBatchLines.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">SetBatchLines</a>. Examples: 200 or 10ms (depending on format).</td>
Expand Down Expand Up @@ -1689,7 +1693,7 @@ <h4 class="calibre25"><a id="Variables.htm__settings" href="#Variables.htm__sett
<td class="calibre4 tbd"><a id="Variables.htm__FormatFloat" href="#Variables.htm__FormatFloat" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> The current floating point number format set by <a href="#SetFormat.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">SetFormat</a>. </td>
</tr>
<tr class="calibre3">
<td class="calibre4">A_KeyDelay</td>
<td class="calibre4">4lay</td>
<td class="calibre4 tbd"><a id="Variables.htm__KeyDelay" href="#Variables.htm__KeyDelay" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">#</a> The current delay set by <a href="#SetKeyDelay.htm" class="pcalibre3 pcalibre1 pcalibre calibre5 pcalibre2">SetKeyDelay</a> (always decimal, not hex). </td>
</tr>
<tr class="calibre3">
Expand Down
1 change: 1 addition & 0 deletions src/run/runner.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e4c72f

Please sign in to comment.