mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 3 1 2 3
@window help needed #183309
19/08/07 04:16 AM
19/08/07 04:16 AM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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...
Re: @window help needed [Re: WideOpenSpace] #183311
19/08/07 04:20 AM
19/08/07 04:20 AM
Joined: Oct 2004
Posts: 8,327
MA, USA
Riamus2 Offline
Planetary brain
Riamus2  Offline
Planetary brain

Joined: Oct 2004
Posts: 8,327
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
Re: @window help needed [Re: Riamus2] #183375
19/08/07 02:40 PM
19/08/07 02:40 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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.

The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #183377
19/08/07 02:49 PM
19/08/07 02:49 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
RoCk  Offline
Hoopy frood
R

Joined: Dec 2002
Posts: 2,010
/dline -l @window 1-

Last edited by RoCk; 19/08/07 02:50 PM.
Re: @window help needed [Re: RoCk] #183379
19/08/07 03:01 PM
19/08/07 03:01 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
thank you very much


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #183383
19/08/07 04:48 PM
19/08/07 04:48 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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...
Re: @window help needed [Re: WideOpenSpace] #183384
19/08/07 04:53 PM
19/08/07 04:53 PM
Joined: Oct 2004
Posts: 8,327
MA, USA
Riamus2 Offline
Planetary brain
Riamus2  Offline
Planetary brain

Joined: Oct 2004
Posts: 8,327
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
Re: @window help needed [Re: Riamus2] #183387
19/08/07 04:58 PM
19/08/07 04:58 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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.

The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #183390
19/08/07 05:07 PM
19/08/07 05:07 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
lbclick

Re: @window help needed [Re: hixxy] #183393
19/08/07 05:32 PM
19/08/07 05:32 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
thanks


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #183487
20/08/07 02:11 PM
20/08/07 02:11 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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...
Re: @window help needed [Re: WideOpenSpace] #183488
20/08/07 02:20 PM
20/08/07 02:20 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
Wrap the filename in quotes: $qt($mircdirsystem\icon-library.ICL)

Re: @window help needed [Re: hixxy] #183494
20/08/07 03:27 PM
20/08/07 03:27 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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...
Re: @window help needed [Re: WideOpenSpace] #183495
20/08/07 03:28 PM
20/08/07 03:28 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
Try pasting the entire command you're using as the problem might be elsewhere.

Re: @window help needed [Re: hixxy] #183496
20/08/07 03:30 PM
20/08/07 03:30 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
/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...
Re: @window help needed [Re: WideOpenSpace] #183498
20/08/07 03:35 PM
20/08/07 03:35 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
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)

Re: @window help needed [Re: hixxy] #183500
20/08/07 03:41 PM
20/08/07 03:41 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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...
Re: @window help needed [Re: WideOpenSpace] #183501
20/08/07 03:44 PM
20/08/07 03:44 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
Strange. I'm not sure what's going on. It works fine when I use the mIRC executable.

Re: @window help needed [Re: hixxy] #183503
20/08/07 03:50 PM
20/08/07 03:50 PM
Joined: Jun 2007
Posts: 157
???
W
WideOpenSpace Offline OP
Vogon poet
WideOpenSpace  Offline OP
Vogon poet
W

Joined: Jun 2007
Posts: 157
???
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...
Re: @window help needed [Re: WideOpenSpace] #183504
20/08/07 03:52 PM
20/08/07 03:52 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
Not $qt(blabla) $mircexe, this:

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

Page 1 of 3 1 2 3