View Single Post
Old 06-18-2017, 01:38 PM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,970
Default

Have you looked at the API documentation?

In summary:
  • getchar returns -1 when the window is closed, 0 if no key is pressed and a positive number otherwise.
  • defer runs the given function on the next internal timer tick (EDIT: 30-50Hz). It also disables the undo point that running a script usually creates.

Last edited by cfillion; 06-19-2017 at 04:29 PM.
cfillion is offline   Reply With Quote