mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 3 1 2 3
Re: @window help needed [Re: hixxy] #183505 20/08/07 03:54 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
nah, nothing on both .20 and .21


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #183506 20/08/07 03:55 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
Have you tried 6.3? Maybe a bug was fixed..

I'm not using 6.21 so I can't try it on that one.

Re: @window help needed [Re: hixxy] #183507 20/08/07 03:58 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
nope, i avoid 6.3 in large radius :P


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

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


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #183510 20/08/07 04:04 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
Whatever your issues with 6.3 are, I'm sure that dozens of bug fixes and new features outweigh them. It makes helping you more difficult because the majority of people will be using the most up to date version of the software, and that's the one that's more commonly supported.

Re: @window help needed [Re: hixxy] #183511 20/08/07 04:14 PM
Joined: Apr 2006
Posts: 464
O
OrionsBelt Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Try viewing the icon when the window is not maximised.
When the window is maximised you dont see it or only in the menu bar.

Re: @window help needed [Re: OrionsBelt] #183512 20/08/07 04:19 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
it seems that it cant read icon libraries
i tried with single icon and it loads it ok.


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: Riamus2] #184687 31/08/07 02:39 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
Originally Posted By: Riamus2
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.


not to make NEW post, but just to add to this one...

so i use for same window this:

Code:
  lbclick {
    if ($line(@window),1,1) != $null) { 
do some things
    }
    else { return }
}


the problem is that when i load this window
and when window loads contents on side listbox
and when i DONT click on valid item but on the bottom (below all items) in blank space
i get errors

shouldnt this: else { return }
supposed to halt it ?


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #184688 31/08/07 03:01 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
That code is saying "if there are lines in the side listbox, then do this" - it doesn't matter where abouts you click. In any event, nothing there would generate an error and you don't need the "else { return }" part at all.

What commands are you trying to execute in the "do some things" part?

Re: @window help needed [Re: hixxy] #184690 31/08/07 03:15 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
this ones:
Code:
menu @Log*viewer { 
  lbclick {
    if ($line($logwin(@Log viewer),1,1) != $null) { 
      .clear $logwin(@Log viewer)
      .loadbuf $logwin(@Log viewer) $qt($+($logsdir,$sline($logwin(@Log viewer),1),.log))
    }
}


(i use it for loading and displaying logs)

but when i click on non showed item i get error:
* /loadbuf: unable to open 'C:\mirc\logs\.log'

Last edited by WideOpenSpace; 31/08/07 03:16 PM.

The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #184691 31/08/07 03:19 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
That's because in the if statement you're checking that lines exist in the listbox, but you're not checking that a line is selected.

Code:
menu @Log*viewer { 
  lbclick {
    if ($sline($logwin(@Log viewer),1)) { 
      .clear $logwin(@Log viewer)
      .loadbuf $logwin(@Log viewer) $qt($+($logsdir,$sline($logwin(@Log viewer),1),.log))
    }
  }
}


Use $sline() instead of $line() in your if statement.

Re: @window help needed [Re: hixxy] #184694 31/08/07 03:30 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
ah sweet !
thank you very much laugh


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #184709 31/08/07 05:41 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
bleh another question...

when i loadbuff log into window
i get some too long lines out of border
and i cant find in help file anywhere a switch that
makes hsbar to be enabled.

is there solution for this ?


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #184715 31/08/07 06:32 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
After you've finished adding data to the listbox, make a call to window -b $logwin(@Log viewer)

Re: @window help needed [Re: hixxy] #184733 31/08/07 10:44 PM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
sorry

i didnt mean on listbox where i select log names, but on window where all text from log is loaded


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #184734 31/08/07 10:48 PM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Try /loadbuf -pi @win file
(/help /loadbuf)

Re: @window help needed [Re: deegee] #184744 01/09/07 03:12 AM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
thank you, it worked smile


The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #187566 08/10/07 02:56 AM
Joined: Jun 2007
Posts: 157
W
WideOpenSpace Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 157
yet another revive of the same :P

i dont see this in help file but just to ask here...
since i have side listbox in @window
can that listbox have popup menu (with right click)
like you create for normal @window ?

Last edited by WideOpenSpace; 08/10/07 02:56 AM.

The harder I chase my dreams the more I experience the time for smiles and tears...
Re: @window help needed [Re: WideOpenSpace] #187591 08/10/07 08:16 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: WideOpenSpace
yet another revive of the same :P

i dont see this in help file but just to ask here...
since i have side listbox in @window
can that listbox have popup menu (with right click)
like you create for normal @window ?


Depending on your @window size etc... you can do something like this...

Code:
menu @window {
rclick:{
;The inrect would be in rectangle where you have to 
;make an 
;hidden rectangle to which the mouse events can occur
if ($inrect(x,y,x,y,w,h)) { do stuff here }
}
}


or if you have trouble finding the rectangle of your @window in the listbox do... this..

Code:
menu @window {
rclick:{ echo -a The X of my mouse click is $mouse.x and the Y of my mouse is $mouse.y }
}


the way the inrect works is you need a point which is point left top corner to bottom right corner... then the height and width total of your rectangle.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Page 2 of 3 1 2 3