I need some help figuring out what lingo I use to have an
event happen once the mouse has been idle (no mouse clicks or
movement) for a period of time.|||
Try something like this – will look at mouse location (the
MouseLoc) and start a timer. If your mouse moves it will restart
the timer but if the timer is up, it will cause your event,
You can use the lastRoll property. It will tell you how long
been since the mouse was moved. This code (copied straight
from the help
file) will go to the “Attract Loop” frame after the mouse has
for 45 seconds.
if (_player.lastRoll > (45 * 60)) then
There is also the lastEvent property which does the same
thing but takes
into consideration mouse and keyboard input.
you can test mouse clicks using the lastClick… for the
mouse click… don’t know if it works for both right and left
buttons and/or any other buttons to be found on certain mice.
There’s also lastKey, lastEvent, and lastRoll (as mentioned
- Replacing recorded mouse with insert mouse to alter start point
- Mouse hover event to scroll text
- Getting Relative Mouse Loc Without Tell
- Image Mouse Overs = Small source pic to large mouse oevr
- Using the mouse wheel
Related posts brought to you by Yet Another Related Posts Plugin.