www.ClassicTW.com
https://mail.black-squirrel.com/

script window example
https://mail.black-squirrel.com/viewtopic.php?f=15&t=18088
Page 1 of 1

Author:  Zarkahn [ Thu Nov 16, 2006 11:50 pm ]
Post subject: 

this is a simple script to create a window for sectors gridded as an example... I run it as a seperate script... as a systemscript... so it has to be killed manually... should work with any grid script... not tested... but takes no action other than the window, so shouldn't interfere... hasn't been tested on hi speed... but a very simple script to show how to use a window in a script...


# START SCRIPT HERE
systemscript

:start
window GridCount 185 135 "GridCount" ONTOP
setvar $count 0
gosub :wind

:count
killalltriggers
settexttrigger add :add "vs. theirs:"
pause

:add
add $count 1
gosub :wind
goto :count

:wind
setVar $contents "Sectors Gridded: " & $count & "*"
setWindowContents GridCount $contents
return

# END SCRIPT HERE

Just trying to do my little part to help peeps learn

Author:  Zarkahn [ Thu Nov 16, 2006 11:55 pm ]
Post subject: 

well only counts sectors others had gridded that u took... won't count sectors no one owned... also used a old window... could be smaller... adjust for ur screen...

Author:  Thrawn [ Thu Nov 16, 2006 11:59 pm ]
Post subject: 

That is very interesting. Thank you Zarkahn for that. I will find it very useful.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/