Search found 373 matches

by PaulDaMacMan
Sun Mar 07, 2021 5:57 am
Forum: Talking LiveCode
Topic: Limiting the number of lines in menu buttons
Replies: 3
Views: 73

Re: Limiting the number of lines in menu buttons

ComboBox menu type still honors the setting on macOS (10.14.6), menu does in fact have a scrollbar. I vaguely remember it having an affect on earlier versions. Menus that autoscroll definitely do happen on the macOS if the menu has so many items that it can't fit the full list on the screen (I've po...
by PaulDaMacMan
Sun Mar 07, 2021 5:29 am
Forum: Talking LiveCode
Topic: LC > 5.5.1 performance is really disappointing!
Replies: 3
Views: 59

Re: LC > 5.5.1 performance is really disappointing!

Have you tried 6.7.11 or whatever the last version of 6 was? I believe that was the last version I had significantly faster text processing with, I stuck with that mostly until LiveCode Builder (which I really wanted to get into) came to fruition in v.8. Building a LiveCode Builder extension, perhap...
by PaulDaMacMan
Sat Mar 06, 2021 7:12 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

FYI: I just dug out a generic Bluetooth (pretty sure it's HID) keyboard that I used to occasionally use with my old Nexus 7 Android tablet and synced it to my laptop to test with this HIDAPI, the result was the keyboard is immediately recognized by the OS (I'm typing on it now), but when HIDAPI sca...
by PaulDaMacMan
Fri Mar 05, 2021 4:36 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

I might just wrap the parts of libusb that are related to HID descriptors and combine it with this HIDAPI lib wrapper. I think I could do the whole thing but libusb has a LOT to it, like 100 or so functions , and that's just a bit too much work for this hobbyist when all I wanted was just to play ar...
by PaulDaMacMan
Fri Mar 05, 2021 6:27 am
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

I must admit, I don't know what I'm doing, but on trying this out on Windows 10 (x64) I get an error: button "HIDAPI Initialize": execution error at line 5 (LCB Error in file D:/path to my LCB folder/LCB_HIDAPI/HIDAPI.lcb at line 250: Unable to bind foreign handler community.livecode.paulmcclernan....
by PaulDaMacMan
Fri Mar 05, 2021 5:02 am
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

I must admit, I don't know what I'm doing, but on trying this out on Windows 10 (x64) I get an error: button "HIDAPI Initialize": execution error at line 5 (LCB Error in file D:/path to my LCB folder/LCB_HIDAPI/HIDAPI.lcb at line 250: Unable to bind foreign handler community.livecode.paulmcclernan....
by PaulDaMacMan
Thu Mar 04, 2021 4:07 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

A bit more progress and cleanup done, and here's a demo video of testing with a few different Joystick/Gamepad type USB HID devices:
https://www.youtube.com/watch?v=Ga1WLIc31fk
by PaulDaMacMan
Wed Mar 03, 2021 6:45 am
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

Now I'm considering trying to wrap libusb, which has a bit more features beyond USB HID, for one thing it looks like it can get device descriptors. It's also crossplatform and "userland" friendly (no elevated privileges required). The main problem is I have too many ongoing projects now, and the mor...
by PaulDaMacMan
Tue Mar 02, 2021 10:59 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

I have only a handful of HID devices to test this out with and they're almost all USB gaming controllers, GuitarHero/Rockband things, or adapters for game controllers. Already from testing two different game controllers I found out I needed to expand a block to accommodate longer Product Name string...
by PaulDaMacMan
Mon Mar 01, 2021 9:21 pm
Forum: Talking LiveCode
Topic: Extracting NMEA data from a USB port
Replies: 7
Views: 236

Re: Extracting NMEA data from a USB port

I don't know anything about NMEA data, but I don't see a starting $ character in that sample at all. Are you sure you are receiving the message properly?
How about posting the code you used to receive this sample with?
by PaulDaMacMan
Mon Mar 01, 2021 7:46 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

@richmond62 wrote: Mon Mar 01, 2021 10:03 am must have been programmed to send standard keyboard signals for you to be able to capture them Well, yes, I would suppose so. Surely ALL USB input devices are programmed to send some sort of signal "down the USB pipe" to the computer. Yeah 'some sort of s...
by PaulDaMacMan
Mon Mar 01, 2021 3:52 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

Can you read signals from that D-Pad into LiveCode? The way I worked out the signals being sent into my machine with this: - keyUpsNostromoSMALL.jpg - was with this sort of code: on keyUp KP put KP end keyUp and then pressing the keys on the Nostromo n52. That Belkin device must have been programme...
by PaulDaMacMan
Mon Mar 01, 2021 1:22 am
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

A Belkin Nostromo gamepad n52. The 'latest' software for Windows and Macintosh was released about 17 years ago. BUT, hooked up to a Mac Mini running MacOS 11 it delivers these keyUp signals: So, obviously, it is not a piece of junk, and maybe used to input signals. Hah, I've currently got a Gravis ...
by PaulDaMacMan
Sun Feb 28, 2021 7:18 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

@ Hi PaulDaMacMan, I've never done anything involving libraries (except using them) but since I'm working on a project that is going to use an RFID reader with HID support I'm interested on what you are doing. I'm not sure if I will be able to help but for sure I will try. Please let me know what ca...
by PaulDaMacMan
Sun Feb 28, 2021 6:39 pm
Forum: Talking LiveCode
Topic: USB Device - HIDAPI or ?
Replies: 35
Views: 3788

Re: USB Device - HIDAPI or ?

So far just it logs some info on attached USB HID devices to the extension builder window. Testing on macOS 10.14.6.
https://github.com/PaulMcClernan/LCB_HIDAPI
*wchar_t is a problem, there's no 'sizeof' equivalent in LiveCode Builder to get the proper length.

Go to advanced search