mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Nov 2003
Posts: 2,327
T
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
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


Link Copied to Clipboard