mIRC Home    About    Download    Register    News    Help

Print Thread
mouse event #222496 21/06/10 12:56 AM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
Code:
alias clickmouse window -pd @a -1 -1 300 300
menu @a {
  mouse : echo -s mouse
  bug : noop $sfile(.)
}
When you right clic and select "bug", if you use a double click to open a file and if the mouse position is inside @a, the mouse event will trigger even if the mouse didn't move


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: mouse event [Re: Wims] #222497 21/06/10 03:00 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Hi,

mIRC simply relays WM_MOUSEMOVE messages from Windows. Windows is telling mIRC that the mouse moved, and mIRC is relaying this message. It's not a bug. There's no guarantee that a "mouse" event (in mIRC) means the mouse's coordinates changed-- it simply means that Windows told mIRC the mouse moved. It could very well have moved from coordinate X,Y to the same X,Y.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: mouse event [Re: argv0] #222498 21/06/10 03:08 AM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
Ok, but it's quite annoying.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net