PureBasic 6.30 beta 1 is ready !
Re: PureBasic 6.30 beta 1 is ready !
Thank you all. First tests are good so far with the compilations of existing projects.
HID, tested, awesome! This will be pretty useful.
Headersection, not tested, but that seems pretty useful!
HID, tested, awesome! This will be pretty useful.
Headersection, not tested, but that seems pretty useful!
- marcoagpinto
- Addict
- Posts: 1051
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: PureBasic 6.30 beta 1 is ready !
@Fred
I know this isn't the indicated place, but could you make the TextGadget flag #PB_Text_Center on Linux to use the API code someone posted on the forum, which is at the bottom of the source-code below?
Thanks!
I know this isn't the indicated place, but could you make the TextGadget flag #PB_Text_Center on Linux to use the API code someone posted on the forum, which is at the bottom of the source-code below?
Thanks!
Code: Select all
TextGadget(#TEXT_WINDOW_ABOUT,x,y,ImageWidth(#GLOBAL_IMAGE_ABOUT_PTG_PB_LOGO_BIG)-ImageWidth(#GLOBAL_IMAGE_ABOUT_PTG_PB_LOGO_Z)-10,ImageHeight(#GLOBAL_IMAGE_ABOUT_PTG_PB_LOGO_Z),t$,#PB_Text_Border|#PB_Text_Center)
SetGadgetColor(#TEXT_WINDOW_ABOUT,#PB_Gadget_BackColor,#White)
CompilerIf #PB_Compiler_OS=#PB_OS_Linux
gtk_label_set_justify_(GadgetID(#TEXT_WINDOW_ABOUT), #GTK_JUSTIFY_CENTER)
CompilerEndIf
Re: PureBasic 6.30 beta 1 is ready !
Why not post it in feature request then ? It will be buried here and forgotten 

Re: PureBasic 6.30 beta 1 is ready !
Has EnableASM/DisableASM been removed? I get a syntax error with these commands.
Peter
Peter
Re: PureBasic 6.30 beta 1 is ready !
You should fill a bug report instead
Re: PureBasic 6.30 beta 1 is ready !
Fantastic!! Thanks PB team!
If translation=Error: reply="Sorry, Im Spanish": Endif
Re: PureBasic 6.30 beta 1 is ready !
What does a HID library do?
Re: PureBasic 6.30 beta 1 is ready !
To use USB-HID devices. Really nice add-on!
If translation=Error: reply="Sorry, Im Spanish": Endif
Re: PureBasic 6.30 beta 1 is ready !
It can also use bluetooth HID devices IIRC
Re: PureBasic 6.30 beta 1 is ready !
For information:
In windows you can not read an USB keyboard or mouse.
It is not allowed by windows to avoid keyloggers.
If a USB device using blocking mode and I put ReadHIDData() in a thread, is it ok to terminate the thread?
Or how can I terminate the blocking read?
In my own stuff I use CancelIOEx() from kernel32 (windows)
In windows you can not read an USB keyboard or mouse.
It is not allowed by windows to avoid keyloggers.
If a USB device using blocking mode and I put ReadHIDData() in a thread, is it ok to terminate the thread?
Or how can I terminate the blocking read?
In my own stuff I use CancelIOEx() from kernel32 (windows)
Code: Select all
Import "Kernel32.lib"
CancelIoEx.i(hFile.i, *lpOverlapped)
EndImport
CancelIOEx(DeviceHandle, #Null)
-
- Addict
- Posts: 1525
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 6.30 beta 1 is ready !
In function ReadHIDData() has a parameter "Timeout". If no data is received, the function will timeout. This is an assumption because the help does not yet describe the HID library and it is not known exactly how the function works.infratec wrote: Tue Sep 02, 2025 2:48 pmIf a USB device using blocking mode and I put ReadHIDData() in a thread, is it ok to terminate the thread?
Or how can I terminate the blocking read?
Re: PureBasic 6.30 beta 1 is ready !
Some very nice new features! I can think of a couple of uses for the string placeholder off the top of my head. 
