|
|
Hide mouse on idle
Added on 5/1/2002
|
Compatibilities:
|
This item has not yet been rated
|
Hides the mousecursor if you don't move the mouse for a set period of time.
property mhLoc, mhCount, mhTiming
on new me
me.mhLoc = duplicate(the mouseLoc)
me.mhCount = 0
me.mhTiming = 1000 -- !!! adjust your timing here !!!
return me
end
on exitFrame me
if me.mhLoc = the mouseLoc then
if me.mhCount = 0 then
me.mhCount = the milliseconds
end if
else
me.mhCount = 0
me.mhLoc = duplicate(the mouseLoc)
end if
if me.mhCount = 0 then
cursor 0
else if (me.mhCount + me.mhTiming) < the milliseconds then
cursor 200
end if
end
|
|