mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 3 1 2 3
#183309 19/08/07 04:16 AM
W
WideOpenSpace
WideOpenSpace
W
so i create @window with (among other) parameter lS

so i get sortside listbox window and normal window.
my question is: how to clear content of sortside listbox window ?

coz for /dline i guess i need $sline
and $sline only reacts on selected lines and i dont have them
for this case :P

#183311 19/08/07 04:20 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Why do you need $sline? Just use the line number that you want.

/dline -l @window 5

W
WideOpenSpace
WideOpenSpace
W
beacuse i load many random lines and i cant know how many lines are there since is not always same number (dynamical)
and i dont want just 1 line to be cleared, but all.

Last edited by WideOpenSpace; 19/08/07 02:43 PM.
#183377 19/08/07 02:49 PM
Joined: Dec 2002
Posts: 2,005
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,005
/dline -l @window 1-

Last edited by RoCk; 19/08/07 02:50 PM.
W
WideOpenSpace
WideOpenSpace
W
thank you very much

#183383 19/08/07 04:48 PM
W
WideOpenSpace
WideOpenSpace
W
bleh not to open new thread...

i have little craps with menu of window

basicaly i want detection of existing lines in side sort listbox
if there are none lines there, then script should halt (if user double clicks in normal window)
but instead it doesnt :P

why ?

Code:
menu @Window { 
  dclick { 
    if ($line(@Window,1,1) != 0) { 
    do some stuff
    }
    else { halt }
  }
}


#183384 19/08/07 04:53 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Code:
menu @Window { 
  dclick { 
    if ($line(@Window,1,1) != $null) { 
      do some stuff
    }
  }
}


Unless you always have "0" in line 1 if it has lines, use $null. Also, no need to halt something like this. If it's $null, it won't have another other commands to do anyhow. If you DO want to halt something, use RETURN unless you're halting mIRC's commands/outputs rather than the script.

W
WideOpenSpace
WideOpenSpace
W
thanks it works nicely ^^

additional question:

is there a flag for menu commands like dclick sclick etc...
that only works if user clicks in sortside listbox and not normal window ?

Last edited by WideOpenSpace; 19/08/07 05:01 PM.
#183390 19/08/07 05:07 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
lbclick

W
WideOpenSpace
WideOpenSpace
W
thanks

#183487 20/08/07 02:11 PM
W
WideOpenSpace
WideOpenSpace
W
another question :P

help file says to change icon of @window that you specify
iconfile #number

so i have this:

/window -tags @name $mircdirsystem\icon-library.ICL number
but it still shows normal @ icon, why ?

or @windows cant load Libraries ?

#183488 20/08/07 02:20 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Wrap the filename in quotes: $qt($mircdirsystem\icon-library.ICL)

W
WideOpenSpace
WideOpenSpace
W
doesnt work smirk

tried
$qt($mircdirsystem\file.icl) #number
$qt($mircdirsystem\file.icl #number)

#183495 20/08/07 03:28 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Try pasting the entire command you're using as the problem might be elsewhere.

W
WideOpenSpace
WideOpenSpace
W
/window -CkSl18 $logwin(@window name) $qt($mircdirsystem\file.icl) 11

where $logwin is
alias logwin { return $replace($1- ,$chr(32),$chr(160)) }

#183498 20/08/07 03:35 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
That command works fine for me if I use $mircexe instead of $mircdirsystem\file.icl, so the problem is likely to do with the file -- either it doesn't exist, there isn't an icon at that index or it's corrupted.

Try seeing if it exists with //echo -a $isfile(system\file.icl)

W
WideOpenSpace
WideOpenSpace
W
its there coz i use it for all custom dialogs smile
and it has more than 11 indexes smile

i use mirc 6.21 if that helps in any way :P

#183501 20/08/07 03:44 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Strange. I'm not sure what's going on. It works fine when I use the mIRC executable.

W
WideOpenSpace
WideOpenSpace
W
i tried now instead $qt(blabla) $mircexe
and $mircexe 3

doesnt work either
also tried on clean 6.20
dosnt work on that also O_o

#183504 20/08/07 03:52 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Not $qt(blabla) $mircexe, this:

Code:
//window -CkSl18 $logwin(@window name) $qt($mircexe) 11

Page 1 of 3 1 2 3

Link Copied to Clipboard