mIRC Home    About    Download    Register    News    Help

Print Thread
#169002 18/01/07 01:12 AM
Joined: Dec 2006
Posts: 31
K
klaaamp Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2006
Posts: 31
why doesnt this work:
ON *:DIALOG:test1:rclick:*:{
isnt rclick supported in on dialog-events?

klaaamp #169004 18/01/07 01:45 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I've never used it myself, but according to the help file, it's supported and the format of your event is correct. I can't tell if there might be something else wrong with your code, as you didn't provide anything else.

Upon testing, I found that the right click was only recognized on disabled ID's and always returned an ID of 0.

Sorry I can't be of more assistance at this point.

RusselB #169030 18/01/07 06:44 AM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Ok this is how I do my right click events.

Code:
on *:<dialog>:sclick:<id>:{
<any sclick events>

if (rclick* !iswm $did(<id>,1)) halt
<right click events after here>
}

Last edited by DJ_Sol; 18/01/07 06:46 AM.
DJ_Sol #169036 18/01/07 11:56 AM
Joined: Dec 2006
Posts: 31
K
klaaamp Offline OP
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Dec 2006
Posts: 31
Originally Posted By: DJ_Sol
Ok this is how I do my right click events.

Code:
on *:<dialog>:sclick:<id>:{
<any sclick events>

if (rclick* !iswm $did(<id>,1)) halt
<right click events after here>
}


That code doesnt work, and I dont see how it would either since u specify it to listen on sclick and nothing else, and if it would work it would not be a proper way todo since it kinda cheats how mirc should react..

klaaamp #169057 18/01/07 05:59 PM
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
lol, well Klaamp, sorry to say it works for me every time. Ya should not look to see how something is wrong, instead look to see how it could be right. At the very least, in the code I provided, you will see how you can find the right click event with $did(<id>,1).

If you were to read the mirc help file about the sclick event you would see "sclick single click in list/combo box, or check/uncheck of radio/check buttons, or click of a button."

Is a right click a single click in a list/combo box?

Last edited by DJ_Sol; 18/01/07 06:01 PM.
DJ_Sol #169058 18/01/07 06:01 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
If you're using a DLL like MDX, it may be interfering in the way events are processed, and as far as I remember your method is exactly how you catch a right click event in MDX, but afaik in native mIRC right clicks are only caught on the dialog itself.


Link Copied to Clipboard