mIRC Home    About    Download    Register    News    Help

Topic Options
#222496 - 21/06/10 01:56 AM mouse event
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3515
Loc: France
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

Top
#222497 - 21/06/10 04:00 AM Re: mouse event [Re: Wims]
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
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"

Top
#222498 - 21/06/10 04:08 AM Re: mouse event [Re: argv0]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3515
Loc: France
Ok, but it's quite annoying.
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top