Page 2 of 2

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 9:55 am
by miso
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!

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 10:41 am
by marcoagpinto
@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!

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 !

Posted: Tue Sep 02, 2025 10:45 am
by Fred
Why not post it in feature request then ? It will be buried here and forgotten :)

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 11:56 am
by PeDe
Has EnableASM/DisableASM been removed? I get a syntax error with these commands.

Peter

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 12:06 pm
by Fred
You should fill a bug report instead

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 12:23 pm
by minimy
Fantastic!! Thanks PB team!

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 1:27 pm
by BarryG
What does a HID library do?

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 2:33 pm
by minimy
BarryG wrote: Tue Sep 02, 2025 1:27 pm What does a HID library do?
To use USB-HID devices. Really nice add-on!

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 2:42 pm
by Fred
It can also use bluetooth HID devices IIRC

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 2:48 pm
by infratec
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)

Code: Select all

Import "Kernel32.lib"
  CancelIoEx.i(hFile.i, *lpOverlapped)
EndImport

CancelIOEx(DeviceHandle, #Null)

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 4:39 pm
by User_Russian
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?
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.

Re: PureBasic 6.30 beta 1 is ready !

Posted: Tue Sep 02, 2025 5:37 pm
by spikey
Some very nice new features! I can think of a couple of uses for the string placeholder off the top of my head. :idea: