PureBasic 6.30 beta 1 is ready !

Developed or developing a new product in PureBasic? Tell the world about it.
miso
Enthusiast
Enthusiast
Posts: 466
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: PureBasic 6.30 beta 1 is ready !

Post 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!
User avatar
marcoagpinto
Addict
Addict
Posts: 1051
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.30 beta 1 is ready !

Post 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
Fred
Administrator
Administrator
Posts: 18199
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 1 is ready !

Post by Fred »

Why not post it in feature request then ? It will be buried here and forgotten :)
PeDe
Enthusiast
Enthusiast
Posts: 281
Joined: Sun Nov 26, 2017 3:13 pm

Re: PureBasic 6.30 beta 1 is ready !

Post by PeDe »

Has EnableASM/DisableASM been removed? I get a syntax error with these commands.

Peter
Fred
Administrator
Administrator
Posts: 18199
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 1 is ready !

Post by Fred »

You should fill a bug report instead
User avatar
minimy
Enthusiast
Enthusiast
Posts: 613
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.30 beta 1 is ready !

Post by minimy »

Fantastic!! Thanks PB team!
If translation=Error: reply="Sorry, Im Spanish": Endif
BarryG
Addict
Addict
Posts: 4168
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.30 beta 1 is ready !

Post by BarryG »

What does a HID library do?
User avatar
minimy
Enthusiast
Enthusiast
Posts: 613
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.30 beta 1 is ready !

Post 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!
If translation=Error: reply="Sorry, Im Spanish": Endif
Fred
Administrator
Administrator
Posts: 18199
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.30 beta 1 is ready !

Post by Fred »

It can also use bluetooth HID devices IIRC
infratec
Always Here
Always Here
Posts: 7613
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PureBasic 6.30 beta 1 is ready !

Post 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)
User_Russian
Addict
Addict
Posts: 1525
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.30 beta 1 is ready !

Post 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.
User avatar
spikey
Enthusiast
Enthusiast
Posts: 767
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: PureBasic 6.30 beta 1 is ready !

Post 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:
Post Reply