mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2004
Posts: 6
U
Unique Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2004
Posts: 6
Is this possible? Ive been trying with the /window options to make it possible but with no luck.

If i use the "l" option which stands for listbox, it will create a scrollbar but i cant copy paste decently from it..

Another thing, is there an on close event on @windows?
Cuz id like to save the location/size of it so it will be at same place when reopening.
I saw this:" R= reset window position to previously saved position "
But cant find the save option for this confused
I could save these stats using $window() but dunno how to triggen something on close @window..

Thanks!

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Update scrollbar: /window -b

Close event:


  • on *:close:@:{
    if ($window == @win) { ... }
    }


Copy for listboxes:


  • menu @win {
    Copy:{
    clipboard -n $sline($active,1)
    var %i = 2
    while ($sline($active,%i)) {
    clipboard -an $sline($active,%i)
    inc %i
    }
    }
    }


New username: hixxy
Joined: Jul 2004
Posts: 6
U
Unique Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
U
Joined: Jul 2004
Posts: 6
Thanks for the fast reply...
Since i wont be copy pasting *that* much it will do for now smile

Greetings

update: just found this switch
"The -p switch forces the line of text to be wrapped if it's too long to fit on one line." for aline shocked
Seems to work too smile

Last edited by Unique; 19/07/04 08:33 PM.
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
on *:close:@:{
  • if $target == @baa { dothis }
    elseif $target == @moo { dothat }

}


Link Copied to Clipboard