mIRC Home    About    Download    Register    News    Help

Page 1 of 3 1 2 3 >
Topic Options
#183309 - 19/08/07 05:16 AM @window help needed
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
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
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183311 - 19/08/07 05:20 AM Re: @window help needed [Re: WideOpenSpace]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
Why do you need $sline? Just use the line number that you want.

/dline -l @window 5
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#183375 - 19/08/07 03:40 PM Re: @window help needed [Re: Riamus2]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
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.


Edited by WideOpenSpace (19/08/07 03:43 PM)
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183377 - 19/08/07 03:49 PM Re: @window help needed [Re: WideOpenSpace]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009
/dline -l @window 1-


Edited by RoCk (19/08/07 03:50 PM)

Top
#183379 - 19/08/07 04:01 PM Re: @window help needed [Re: RoCk]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
thank you very much
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183383 - 19/08/07 05:48 PM Re: @window help needed [Re: WideOpenSpace]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
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 }
  }
}

_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183384 - 19/08/07 05:53 PM Re: @window help needed [Re: WideOpenSpace]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
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.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#183387 - 19/08/07 05:58 PM Re: @window help needed [Re: Riamus2]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
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 ?


Edited by WideOpenSpace (19/08/07 06:01 PM)
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183390 - 19/08/07 06:07 PM Re: @window help needed [Re: WideOpenSpace]
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
lbclick

Top
#183393 - 19/08/07 06:32 PM Re: @window help needed [Re: hixxy]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
thanks
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183487 - 20/08/07 03:11 PM Re: @window help needed [Re: WideOpenSpace]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
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 ?
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183488 - 20/08/07 03:20 PM Re: @window help needed [Re: WideOpenSpace]
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Wrap the filename in quotes: $qt($mircdirsystem\icon-library.ICL)

Top
#183494 - 20/08/07 04:27 PM Re: @window help needed [Re: hixxy]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
doesnt work smirk

tried
$qt($mircdirsystem\file.icl) #number
$qt($mircdirsystem\file.icl #number)
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183495 - 20/08/07 04:28 PM Re: @window help needed [Re: WideOpenSpace]
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Try pasting the entire command you're using as the problem might be elsewhere.

Top
#183496 - 20/08/07 04:30 PM Re: @window help needed [Re: hixxy]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
/window -CkSl18 $logwin(@window name) $qt($mircdirsystem\file.icl) 11

where $logwin is
alias logwin { return $replace($1- ,$chr(32),$chr(160)) }
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183498 - 20/08/07 04:35 PM Re: @window help needed [Re: WideOpenSpace]
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
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)

Top
#183500 - 20/08/07 04:41 PM Re: @window help needed [Re: hixxy]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
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
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183501 - 20/08/07 04:44 PM Re: @window help needed [Re: WideOpenSpace]
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Strange. I'm not sure what's going on. It works fine when I use the mIRC executable.

Top
#183503 - 20/08/07 04:50 PM Re: @window help needed [Re: hixxy]
WideOpenSpace Offline
Vogon poet

Registered: 13/06/07
Posts: 157
Loc: ???
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
_________________________
The harder I chase my dreams the more I experience the time for smiles and tears...

Top
#183504 - 20/08/07 04:52 PM Re: @window help needed [Re: WideOpenSpace]
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Not $qt(blabla) $mircexe, this:

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

Top
Page 1 of 3 1 2 3 >