Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
LOCAL new_x,new_y,cur_key
new_x=mcol() && Current mouse column
new_y=mrow() && Current mouse row
cur_key=lastkey() && Last key pressed on keyboard
if new_x=this.last_x and new_y=this.last_y and cur_key=this.lastkey
*nothing has changed, we are idle
if datetime()-this.idle_since>this.max_idle
this.enabled=.F. && Don't run this code anymore
do closeapp with .T. && Force app shutdown
return
endif
else
* Something has changed, update the idle_since property
this.idle_since=datetime()
this.last_x=new_x
this.last_y=new_y
this.lastkey=cur_key
endif