mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 122
S
STING Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Dec 2002
Posts: 122
Hi,
I have created a custom window, with a side-listbox.
Catching right-clicks on the contents is done with "menu @window {".
But is there also a way to catch double-clicks?

I have looked and looked in mIRC.hlp, but couldn't find an answer.

Thanks in advance!

Joined: Dec 2002
Posts: 122
S
STING Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Dec 2002
Posts: 122
After searching the mirc.hlp file more througholy (misspelled I know :P) I found the answer! smile

menu @msn {
dclick: ......
}


Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Just add a second menu @window { with the dclick keyword and using $mouse.lb to ignore doubleclicks on the main area:
Code:
menu @blah {
  Item1: echo -s Item1: $1-
  Item2: echo -s Item2: $1-
}
menu @blah {
  dclick: if $mouse.lb { echo -s doubleclicked in side-listbox on line $1 }
}


Edit: ah you figured it out while I was previewing my post. Still, you might find $mouse.lb useful.

Last edited by qwerty; 30/10/03 09:17 PM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard