Access a USB device from PB?
-
- User
- Posts: 80
- Joined: Thu May 02, 2019 3:57 am
- Location: USA
- Contact:
Access a USB device from PB?
Is there a way to access a USB device from PB? Is there a library?
I tried to search the forum for "USB" but the search function will not accept words of less than 4 characters!
I tried to search the forum for "USB" but the search function will not accept words of less than 4 characters!
Re: Access a USB device from PB?
Hi
What kind of USB device ?
HDD , BT , Wireless Mouse ...etc
And what do you want to do with it
What kind of USB device ?
HDD , BT , Wireless Mouse ...etc
And what do you want to do with it
Egypt my love
Re: Access a USB device from PB?
you will need a library unless the usb appears as a serial port or drive
see https://github.com/libusb/hidapi
I have hidapi build for windows x86/x64 if you need to access a hid device.
see https://github.com/libusb/hidapi
I have hidapi build for windows x86/x64 if you need to access a hid device.
-
- Enthusiast
- Posts: 581
- Joined: Wed Sep 25, 2019 10:18 am
Re: Access a USB device from PB?
Much like juergenkulow's suggestion..
I've bookmarked my web browser to: https://www.google.com/advanced_search?hl=en-DE&fg=1
(Google's advanced search page).. it allows 3 character searches.
In this case:
all these words:USB
desired site search is: www.purebasic.fr
I've bookmarked my web browser to: https://www.google.com/advanced_search?hl=en-DE&fg=1
(Google's advanced search page).. it allows 3 character searches.
In this case:
all these words:USB
desired site search is: www.purebasic.fr
- It was too lonely at the top.
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
-
- User
- Posts: 80
- Joined: Thu May 02, 2019 3:57 am
- Location: USA
- Contact:
Re: Access a USB device from PB?
Thank you all for your replies!!!
Idle: Please send me the Win64 library, or tell me how to get it. Thanks.
I downloaded the library that User_Russian posted but it asks for another lib called MISC, which I cannot find.
Thank you
Robert
Idle: Please send me the Win64 library, or tell me how to get it. Thanks.
I downloaded the library that User_Russian posted but it asks for another lib called MISC, which I cannot find.
Thank you
Robert
Re: Access a USB device from PB?
check you Messages for include and dll
-
- User
- Posts: 80
- Joined: Thu May 02, 2019 3:57 am
- Location: USA
- Contact:
Re: Access a USB device from PB?
Idle: Thank you for the library. I cannot find documentation on how to use it, routine names, parameters, etc. Where can I find it?
Thanks,
Robert
Thanks,
Robert
Re: Access a USB device from PB?
should be docs and examples hereRobertRioja wrote: Thu May 16, 2024 12:41 am Idle: Thank you for the library. I cannot find documentation on how to use it, routine names, parameters, etc. Where can I find it?
Thanks,
Robert
https://github.com/libusb/hidapi
-
- User
- Posts: 80
- Joined: Thu May 02, 2019 3:57 am
- Location: USA
- Contact:
Re: Access a USB device from PB?
Idle,
Thanks again.
Robert
Thanks again.
Robert
Re: Access a USB device from PB?
If it is a USB drive, then it is easier to use WM_DEVICECHANGE
-
- User
- Posts: 80
- Joined: Thu May 02, 2019 3:57 am
- Location: USA
- Contact:
Re: Access a USB device from PB?
AZJIO,
Thank you.
Robert
Thank you.
Robert