On Apr 1, 2012, at 8:51 AM, Richard Miller wrote: > Not even sure this is possible. > > I want to create a simple app that can be controlled by an external bluetooth > keyboard. I realize there are no functions to support any > mouse/cursor-related operations, so this would need to be done differently. > > The only idea I have is to use keyboard input. For example... > > Let's say the app has a video player in it. I want the keyboard to control > start, pause and stop. > > I assume that, if a field was open for input, the user could press a key on > the bluetooth keyboard... say "S"... after which the LC code would close the > onscreen keyboard and start playing the video. > > Is there some way, then, for a press of a key on the bluetooth keyboard to be > recognized by the app, without requiring the user to touch the screen and > open a field?
Richard, I'm sure that a bluetooth keyboard would act the same as the onscreen keyboard would; that is, it *should* send the keyDown, keyUp, rawKeyDown, and rawKeyUp messages to the current card; you can then trap for this in the card script (or stack script, etc.) and go from there. Ken Ray Sons of Thunder Software, Inc. Email: [email protected] Web Site: http://www.sonsothunder.com/ _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
