mIRC Home    About    Download    Register    News    Help

Print Thread
using double click to remove lines from custom win #90908 18/07/04 05:37 PM
Joined: Jul 2003
Posts: 39
X
Xanadu Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jul 2003
Posts: 39
Is there a way to use a double click to remove a line from a custom window? Best I can find is how to get the x,y position of the click.

Thanks

Re: using double click to remove lines from custom win #90909 18/07/04 06:05 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Picture window: store the coordinates of the line you drew in a variable, then use:


  • menu @win {
    dclick:{ drawline -r @win background of your window 1 %x %y %w %h }
    }


Normal @window: you need to use the -l switch in the /window command, eg:


  • window -l300 @win
    aline -l @win this is a test
    menu @win {
    dclick:{ dline -l @win $$1 }
    }


New username: hixxy
Re: using double click to remove lines from custom win #90910 18/07/04 08:50 PM
Joined: Jul 2003
Posts: 39
X
Xanadu Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jul 2003
Posts: 39
works like a champ, thanks