mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Is there a way to have a script determine how many dialogs windows are opened that all use the same table? $dialog appears to be working on names, not tables.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
and what about $dialog(N).table ?

Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Doesn't know the difference between dialogs using different tables. I could use it, but I'd have to loop through all open dialogs and counting the ones with the right table.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Here's an attempt but yes you're right we needed to loop.. frown

Code:
alias gTable {
  var %x = $dialog(0)
  while (%x) {
    if ($1 == $dialog(%x).table) var %gtable = $addtok(%gtable,%x,46)
    dec %x
  }
  return $numtok(%gtable,46)
}


//echo -a $gTable(TableName)

-Andy


Link Copied to Clipboard