Download FreeFloat Access Manual
Transcript
Event Methods In this topic all the event methods are explained in detail. onKey( keyname ) This method is called when a key is pressed. This method receives a string argument containing the keyname or the character pressed. Example: Beep when a certain key is pressed function onKey( keyname ) if keyname == "b" then -- Issue a short beep (3000 Hz, 50 ms) app.beep( 3000, 50 ) end ... end onStart() This method is called when a connection to the host is established. This method receives no arguments. Example: Beep on start function onStart() -- Issue a short beep (3000 Hz, 50 ms) app.beep( 3000, 50 ) end Page 39