Hi Cerveza, first of all, great script...
I was thinking about what you said of adding the names on top of the list, and this is what I came up with:
set #lpc 4000
set %listcnt 1 ;listcnt is what's going to keep track of created "lists"
gosub showmenu
repeat
gosub doit
wait 3s ; 7 second timout in gumpwait
until #false
sub doit
event macro 13 38 ; use skill tracking
gosub TM_GumpWait generic_gump
gosub offsetclick 337 123 l
gosub TM_GumpWait generic_gump
if #result = #FALSE
return
call kalocr.txt getTrackingInfo #contposX #contposY #contsize
for %i 1 !tgi_cnt
{
set %name !tgi_name . %i ; note the "dot"
set %list . %listcnt %name
set %listcnt %listcnt + 1 ; lists will be named %list1, %list2 , ... , %listn
}
menu delete list
menu List Create list 0 0 199 353
for %n %listcnt 1 ; so the previous list will be deleted, and a new one will be created
{ ; in this order: %listn, %listn-1 , ... , %list1
if %list . %n <> N/A ;a safety check to avoid N/A's in your list
menu list add list %list . %n ;lists every list backwards
}
gosub offsetclick 1 1 r
wait 7s
return
;-------------------------------------------------------------------------------
sub OffsetClick
set %tempx %1 + #CONTPOSX
set %tempy %2 + #CONTPOSY
click %tempx %tempy %3
return
;-------------------------------------------------------------------------------
; %1 = Gumpname 1
; %2 = Gumpname 2
; #TRUE gump occured before timeout
sub TM_GumpWait
namespace push
namespace local GW
wait 10
set !timedelay #SCNT
while #SCNT <= !timedelay + 7
{
if #CONTNAME = %1 || #CONTNAME = %2
{
namespace pop
return #TRUE
}
}
namespace pop
return #FALSE
sub showmenu
menu Clear
menu Window Title Cerv's Tracker List
menu Window Color BtnFace
menu Window Size 200 387
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style
menu Font Color WindowText
menu Font Align Left
menu Font Name Courier New
menu Font Size 10
menu Font Color Black
menu Font BGColor Window
menu List Create list 0 0 199 353
menu Show 421 270
return
I've added comments on the lines I changed... Hope this is what you meant, and if it is, hope you find this useful!

Cheers!
EDIT: found a minor issue, should be fixed now