mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
Code:
//var %a = 1 |  while ($window(%a).hwnd) { echo -a $v1 | inc %a }


this will echo hwnd for all custom windows. but how to get hwnd for all opened status window??

Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
Something along these lines

Code:
var %i = 1, %con = $scon(0)

while ( %i <= %con ) {
 
 scid $scon(%i).cid
 echo -s $window(Status Window).hwnd
 inc %i
}

scid -r

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
dont know about the handle, but I played with this
Code:
alias statwin {
  var %i = 1, %con = $scon(0)
  while ( %i <= %con ) {
    scid -s $scon(%i).cid echo -a Connection ID $scon(%i).cid $!network
    inc %i
  }
}


Link Copied to Clipboard