Stopwatch over Bluetooth

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
catalinanesia
Posts: 83
Joined: Sun Feb 16, 2014 10:08 pm

Stopwatch over Bluetooth

Post by catalinanesia » Fri Jun 26, 2015 4:58 pm

Hi everyone,
I have a Bluetooth (HID—Human Interface Device) hooked to Android that acts like a
keyboard sending 1 or 2 as numbers to any text field, all good till here.
If I have more than one HID—Human Interface Device paired with the Android device is there a way
to link every one of them to a "unique" field in my LiveCode app? (it is like having 3 mouses paired at the
same time to Android and you click one of them or all at the same time)
Is there a way to approach this?

Please move the post on the appropriate category if this is not the right one, sorry :(

Thanks!
Catalin

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Stopwatch over Bluetooth

Post by Mark » Tue Jul 07, 2015 6:20 am

Hi Catalin,

No, you can't do this. It isn't that LiveCode wouldn't allow this, but the devices don't have this feature.

On the other hand, you could check if the input is an integer and if it is you can copy it to the appropriate field.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

catalinanesia
Posts: 83
Joined: Sun Feb 16, 2014 10:08 pm

Re: Stopwatch over Bluetooth

Post by catalinanesia » Tue Jul 07, 2015 6:44 pm

Thanks for input Mark!
I do understand what you mean and this is what I had in mind to make it work,
regardless I will do a test this week with 2 HID devices to see what will happened
if they can/cannot be paired simultaneously to Bluetooth.

Regards,
Catalin

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Stopwatch over Bluetooth

Post by Mark » Tue Jul 07, 2015 7:18 pm

Hi Catalin,

Perhaps I wasn't clear. You can pair multiple bluetooth devices, including multiple keyboards and mice, but you can't assign a device to one particular field. However, as I mentioned, I think you can process the input by script and decide where the text should go.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

catalinanesia
Posts: 83
Joined: Sun Feb 16, 2014 10:08 pm

Re: Stopwatch over Bluetooth

Post by catalinanesia » Tue Jul 07, 2015 8:21 pm

Hi Mark,
Uau, this is a good news.
After my short internet search I had the impression that I can "not" pair multiple HID devices at once,
but you are bringing me good news. Any way I will know at one point this week after my test.
Appreciate your comments.
Regards,
Catalin

Post Reply

Return to “Android Deployment”