| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Persistent Script https://mail.black-squirrel.com/viewtopic.php?f=15&t=30542 |
Page 1 of 1 |
| Author: | T0yman [ Thu Nov 04, 2010 3:56 pm ] |
| Post subject: | Persistent Script |
What is added to a script that has a similar way of staying running like mombot does? Example if I hit $z all scripts stop except mombot in TWX. I have a few other scripts I run that I would like to add that same type of control over so if I have a script go bad I do not have to restart them all. Thanks in Advance. |
|
| Author: | Parrothead [ Thu Nov 04, 2010 4:04 pm ] |
| Post subject: | Re: Persistent Script |
"systemscript" is the command that does this....$sx will not kill it. Make sure this is what u want. You must kill the script with $sk(number) or internally with a "halt" command OR with another script with the "stop" command. Exact syntax for these commands is in the twx help file that opens with a browser. |
|
| Author: | Parrothead [ Thu Nov 04, 2010 4:27 pm ] |
| Post subject: | Re: Persistent Script |
T0yman wrote: What is added to a script that has a similar way of staying running like mombot does? Example if I hit $z all scripts stop except mombot in TWX. I have a few other scripts I run that I would like to add that same type of control over so if I have a script go bad I do not have to restart them all. Thanks in Advance. When I run scripts in groups I make one script the master script and use the "load" command to start the others. #:9_dupescripts~scriptcheck :scriptcheck #set array listActiveScripts $scripts listActiveScripts $scriptsx #end load background scripts check for duplicates :duplicates setvar $a 1 :duplicates0 while ($a <= $scripts) setvar $b 1 lowercase $scripts[$a] lowercase $scriptsx[$a] while ($b <= $scripts) lowercase $scriptsx[$b] if (($a <> $b) and ($scripts[$a] = $scriptsx[$b])) stop $scripts[$a] goto :scriptcheck end add $b 1 end add $a 1 end return Subroutine to prevent dupe scripts running |
|
| Author: | T0yman [ Thu Nov 04, 2010 5:16 pm ] |
| Post subject: | Re: Persistent Script |
PH, thanks that is what I was looking for. I just test so many things I hate having to reload stuff I would normally run all the time if something went boom |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|