mouse no movement timer
Posted: Fri Nov 30, 2012 7:30 pm
Hi,
I'm tying to get a button to change it's name to No User and another button to change it's name to Open with a green background when the mouse is not moved after 5 minutes. The compiler keeps telling me (compilation error at line 11 (Commands: missing ',') near "into", char 25) see below. Any suggestions?
on moveStopped
put the seconds into lStart
updateMouseTime
end moveStopped
on updateMouseTime
if the name of btn id "3895" is "No User" then
exit updateMouseTime
put the seconds – lStart into tElapsedTime -- warning says - compilation error at line 11 (Commands: missing ',') near "into", char 25
if tElapsedTime > 300 seconds then
set the name of btn id "3895" to "No User"
set the backgroundColor of btn id "3898" to "green" --backgroundColor
set the name of btn id "3898" to "Open"
end if
end if
end updateMouseTime
I'm tying to get a button to change it's name to No User and another button to change it's name to Open with a green background when the mouse is not moved after 5 minutes. The compiler keeps telling me (compilation error at line 11 (Commands: missing ',') near "into", char 25) see below. Any suggestions?
on moveStopped
put the seconds into lStart
updateMouseTime
end moveStopped
on updateMouseTime
if the name of btn id "3895" is "No User" then
exit updateMouseTime
put the seconds – lStart into tElapsedTime -- warning says - compilation error at line 11 (Commands: missing ',') near "into", char 25
if tElapsedTime > 300 seconds then
set the name of btn id "3895" to "No User"
set the backgroundColor of btn id "3898" to "green" --backgroundColor
set the name of btn id "3898" to "Open"
end if
end if
end updateMouseTime