Search found 1109 matches

by HeX0R
Thu Jan 22, 2026 4:33 pm
Forum: Coding Questions
Topic: Reading or writing inside a LIST() without move his current position [Resolved]
Replies: 9
Views: 336

Re: Reading or writing inside a LIST() without move his current position

If you are only interested in the upcoming or previous element (like in your example), you could also use that approach:
Procedure GetNeighborElements(*CurrentElement, *previous.INTEGER, *next.INTEGER)
*previous\i = PeekI(*CurrentElement - SizeOf(INTEGER))
*next\i = PeekI(*CurrentElement - 2 ...
by HeX0R
Thu Jan 22, 2026 12:57 pm
Forum: Windows
Topic: Broken "VoiceAccess" workaround
Replies: 2
Views: 255

Re: Broken "VoiceAccess" workaround

Isn't there always a copy of the latest VoiceAccess.exe in C:\Windows\System32?
A simple

Code: Select all

RunProgram("C:\Windows\System32\VoiceAccess.exe", "", "")
does not work for you?
by HeX0R
Wed Jan 21, 2026 8:34 pm
Forum: Game Programming
Topic: Platformer 2D Opengl
Replies: 16
Views: 708

Re: Platformer 2D Opengl

Find the mistake :mrgreen:

Code: Select all

  Repeat
    If WindowEvent() = #PB_Event_CloseWindow
      End
    EndIf
  Until Event = 0
by HeX0R
Wed Jan 21, 2026 5:15 pm
Forum: Coding Questions
Topic: How to read Json results?
Replies: 13
Views: 484

Re: How to read Json results?


How did you recreate the JSON structure? By hand?
Yes, took me less than 5 minutes.
But in fact your used API should have a clear description somewhere, no need to use the output and recreate the members.
Since I have no idea which service we are talking about (I don't know "joplin"), I had to ...
by HeX0R
Wed Jan 21, 2026 3:17 pm
Forum: Coding Questions
Topic: How to read Json results?
Replies: 13
Views: 484

Re: How to read Json results?

Paul wrote: Wed Jan 21, 2026 3:08 pm HeXOR beat me to it :P :P
HaHaHa, two idiots, almost the very same code :mrgreen:
by HeX0R
Wed Jan 21, 2026 3:07 pm
Forum: Coding Questions
Topic: How to read Json results?
Replies: 13
Views: 484

Re: How to read Json results?

I tend to recreate the JSON structure, this makes evaluation much easier instead of using those weird JSON commands
Structure myitems
id.s
parent_id.s
title.s
deleted_time.i
EndStructure

Structure BLA
List items.myitems()
has_more.b
EndStructure

JSON$ = ~"{\"items\":[{\"id ...
by HeX0R
Wed Jan 14, 2026 8:39 pm
Forum: Tricks 'n' Tips
Topic: Creating gadgets with CanvasGadget() + VectorDrawing
Replies: 7
Views: 615

Re: Creating gadgets with CanvasGadget() + VectorDrawing

You can replace
CompilerIf #PB_Compiler_DPIAware = 1
Global dpix.d = DesktopResolutionX()
Global dpiy.d = DesktopResolutionY()
CompilerElse
Global dpix.d = 1
Global dpiy.d = 1
CompilerEndIf
with
Global dpix.d = DesktopResolutionX()
Global dpiy.d = DesktopResolutionY()
Beause when DPI ...
by HeX0R
Mon Jan 05, 2026 12:47 pm
Forum: Tricks 'n' Tips
Topic: Window ListIconGadget With Owner Data (Very Fast)
Replies: 44
Views: 3063

Re: Window ListIconGadget With Owner Data (Very Fast)

There were some quite good GridGadgets based on Canvas here in the forum, might be worth a search?
by HeX0R
Mon Jan 05, 2026 1:37 am
Forum: Tricks 'n' Tips
Topic: Window ListIconGadget With Owner Data (Very Fast)
Replies: 44
Views: 3063

Re: Window ListIconGadget With Owner Data (Very Fast)

This would be a GridGadget and no ListIconGadget
by HeX0R
Mon Jan 05, 2026 1:33 am
Forum: Off Topic
Topic: Project Visual Objects Handler
Replies: 4
Views: 609

Re: Project Visual Objects Handler

When I enter your forum, a pop-up with some French texts comes up, but well, ich spreche genauso wenig französisch wie Du deutsch, also entweder machst Du das für den Rest der Welt verständlich oder platziere es nur im französischen PB Forum.

btw., do you know the Dead Horse Theory?
by HeX0R
Wed Dec 31, 2025 12:10 pm
Forum: Tricks 'n' Tips
Topic: Window ListIconGadget With Owner Data (Very Fast)
Replies: 44
Views: 3063

Re: Window ListIconGadget With Owner Data (Very Fast)

I guess many of us had already an ownerdrawn ListIconGadget, due to the reason you already mentioned.
But since mine is very unstructured and "hacked together" I'll use yours in future, thanks for the code!

I never had to use checkboxes in my ownerdrawn lists before, but I think the behavior is odd ...
by HeX0R
Thu Dec 04, 2025 11:12 pm
Forum: Coding Questions
Topic: Simple PB code editor
Replies: 28
Views: 2743

Re: Simple PB code editor

I wrote “gone,” not “passed away”
by HeX0R
Wed Dec 03, 2025 11:00 pm
Forum: Coding Questions
Topic: Simple PB code editor
Replies: 28
Views: 2743

Re: Simple PB code editor

Yes, I consider it special!
When you look through the forum you don't find many PB made scripting languages.
Is it too special to make it public?

Once in the past I was in need of a scripting language for one of my apps, I tinkered with LUA, but never was really happy with it.
Then srod came up ...
by HeX0R
Wed Dec 03, 2025 9:42 pm
Forum: Coding Questions
Topic: Simple PB code editor
Replies: 28
Views: 2743

Re: Simple PB code editor

skywalk wrote: Wed Dec 03, 2025 7:44 pm I have a custom scripting language for my app and I use richtext edit, but it is rudimentary.
You have created your own scripting language?
by HeX0R
Fri Nov 14, 2025 12:13 am
Forum: The PureBasic Editor
Topic: [IDE-Tool] Templates Backup
Replies: 17
Views: 6246

Re: [IDE-Tool] Templates Backup


One Great Template I found:

; ----------------------------------------------------------------------------
; "THE BEER-WARE LICENSE":
; <HeX0R@coderbu.de> wrote this file. as long as you retain this notice you
; can do whatever you want with this stuff. If we meet some day, and you think
; this ...