View unanswered posts | View active topics It is currently Fri May 01, 2026 10:53 am



Reply to topic  [ 1 post ] 
 Script List / Select by Number 
Author Message
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Script List / Select by Number
A simple script to list .ts and .cts scripts and then select by number. Modify to meet your needs.

setVar $version "Script List .1"

getFileList $scriptsTS ".\scripts\*" & ".*ts"



setVar $i 1
setVar $scriptCnt 1
setVar $window ""
Window ZTM 475 375 " " & $version & " by Promethius " ONTOP
while ($i <= $scriptsTS)

setVar $window $window & "[" & $i & "] " & $scriptsTS[$i] & "*"
if ($scriptCnt = 20) or ($i= $scriptsTS)
setWindowContents ZTM $window & "*Press ~ to Continue or = to select*"
setTextOutTrigger continue :continue "~"
setTextOutTrigger select :select "="
pause
:select
echo ANSI_13 "*Enter number of script to run"
getConsoleInput $scriptNumber
load $scriptsTS[$scriptNumber]
halt
:continue
killtrigger select
setVar $window ""
setVar $scriptCnt 0
end
add $scriptCnt 1
add $i 1

end

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Sun Jun 29, 2008 12:10 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.