Re: Baffled or Buffered?



WebBiz wrote:

[snip]

Is there a way to get the program to skip all the buffered mouse-move events once I stop moving the mouse and then execute just the last one?

I can't remember the exact name of the function that gets called when the mouse moves, but I've called it 'mousemove' below:

'Total Air Code alert!
private sub mousemove(mousex as integer, mousey as integer)
Static OldX as integer
Static OldY as integer

if mousex = OldX and mousey = OldY then
	'mouse has stopped, do your stuff...
else
	OldX = mousex
	OldY = mousey
end if
end sub

HTH
.