Search found 867 matches

by HeX0R
Mon Mar 25, 2024 5:04 pm
Forum: The PureBasic Editor
Topic: [IDE Tool] Search in PB Files
Replies: 10
Views: 511

Re: [IDE Tool] Search in PB Files

Nice idea!
I implemented it quite different to yours now.
When doubleclicking on the found file, the line will be selected in the IDE

btw.:
Instead of adding the two constants in the source, you probably should add it to the compiler options (tab constants)
by HeX0R
Fri Mar 22, 2024 11:03 pm
Forum: The PureBasic Editor
Topic: [IDE Tool] Search in PB Files
Replies: 10
Views: 511

Re: [IDE Tool] Search in PB Files

boddhi wrote: Fri Mar 22, 2024 2:12 pm I'm sorry, I don't understand what I did wrong the first time. :oops:
No need to apologize, providing the source means also, anyone can use it however it suits them best.
I just wanted to point out that this was not the way I thought it should be used.
by HeX0R
Fri Mar 22, 2024 10:59 am
Forum: The PureBasic Editor
Topic: [IDE Tool] Search in PB Files
Replies: 10
Views: 511

Re: [IDE Tool] Search in PB Files

You have to compile it to an exe and add it to the PB IDE tools. No parameters needed, just add some menu shortcut (or not) In debugger mode, you need to define #HOME_SOURCE and #HOME_IDE constants, In exe mode, you must create "PB_TOOL_Preferences" and "PB_TOOL_IDE" environment ...
by HeX0R
Thu Mar 21, 2024 11:27 pm
Forum: The PureBasic Editor
Topic: [IDE Tool] Search in PB Files
Replies: 10
Views: 511

Re: [IDE Tool] Search in PB Files

That was an easy one, added it!
Thanks!

btw.:
being drunk is never a bad idea
(guess half of the forum will agree with me :mrgreen:)
by HeX0R
Thu Mar 21, 2024 4:23 pm
Forum: The PureBasic Editor
Topic: [IDE Tool] Search in PB Files
Replies: 10
Views: 511

[IDE Tool] Search in PB Files

A small IDE tool born out of stupidity (see comment on top) ;/------------------------ ;| ;| IDE Tool ;| Search in Purebasic files ;| ;| ©HeX0R 2024 ;| Last Update: 25.03.2024 ;| ;| I got nuts, while trying to find a source of mine ;| ...well in fact I must have been drunk and saved it in a complete...
by HeX0R
Wed Mar 13, 2024 8:08 pm
Forum: Coding Questions
Topic: PB6.10 B8 x64 @DropCallback() mismatch
Replies: 4
Views: 184

Re: PB6.10 B8 x64 @DropCallback() mismatch

o.k. thanks!
It's pretty difficult to test new beta versions, when the help files keep outdated.

I even looked into the DragDrop.txt before creating the bug report, and there it is still:

Code: Select all

Procedure DropCallback(TargetHandle, State, Format, Action, x, y)
by HeX0R
Wed Mar 13, 2024 7:40 pm
Forum: Coding Questions
Topic: PB6.10 B8 x64 @DropCallback() mismatch
Replies: 4
Views: 184

PB6.10 B8 x64 @DropCallback() mismatch

Procedure DropCallback(Handle, Status, Format, Action, x, y) ProcedureReturn #True EndProcedure OpenWindow(0, 0, 0, 300, 300, "D&D", #PB_Window_SystemMenu) EditorGadget(0, 5, 5, 290, 290) EnableGadgetDrop(0, #PB_Drop_Files, #PB_Drag_Copy) SetDropCallback(@DropCallback()) Repeat : Unti...
by HeX0R
Tue Mar 12, 2024 10:21 pm
Forum: General Discussion
Topic: Question about PB's built-in FTP
Replies: 5
Views: 306

Re: Question about PB's built-in FTP

How many Bucks would be needed to get from "somewhen" to "soon"? :mrgreen:
by HeX0R
Mon Mar 11, 2024 9:49 pm
Forum: Coding Questions
Topic: cannot read specific xlsx files
Replies: 3
Views: 250

Re: cannot read specific xlsx files

Sure, but I hope it is not too urgent, I'm a little busy these days.
by HeX0R
Mon Mar 11, 2024 1:47 pm
Forum: Coding Questions
Topic: cannot read specific xlsx files
Replies: 3
Views: 250

Re: cannot read specific xlsx files

It's from here
by HeX0R
Sun Mar 10, 2024 10:18 am
Forum: Coding Questions
Topic: Crash with PB 6.10 b6 with function PeekS / PeekL
Replies: 22
Views: 732

Re: Crash with PB 6.10 b6 with function PeekS / PeekL

STARGÅTE said:
when looking for a memory address
Your registry example looks for the content at a memory address!

And your second example is strange anyway, but I don't know the rest of the code.
If you are looking for the ProcessID, this should do:

Code: Select all

procid = Proc32\th32ProcessID
by HeX0R
Sun Mar 10, 2024 10:00 am
Forum: Coding Questions
Topic: Crash with PB 6.10 b6 with function PeekS / PeekL
Replies: 22
Views: 732

Re: Crash with PB 6.10 b6 with function PeekS / PeekL

I was using other people's code from these forums and they used PeekL() in them. :? One example is ts-soft's Registry module, which was later updated by HeXOR (https://www.purebasic.fr/english/viewtopic.php?p=488711#p488711). Were they both wrong to use PeekL() in it? No! PeekL is used only here: C...
by HeX0R
Fri Mar 08, 2024 11:14 pm
Forum: Coding Questions
Topic: How can I retrieve the netcard gateway?
Replies: 10
Views: 293

Re: How can I retrieve the netcard gateway?

Armoured wrote: Fri Mar 08, 2024 11:10 pm Hi,
Unfortunately, the issue persists and it's still not possible to retrieve the gateway.
You might have to add #GAA_FLAG_INCLUDE_GATEWAYS to the *THIS\GetAdaptersAddresses() call (in IFNA_Refresh())
by HeX0R
Fri Mar 08, 2024 10:17 pm
Forum: Coding Questions
Topic: How can I retrieve the netcard gateway?
Replies: 10
Views: 293

Re: How can I retrieve the netcard gateway?

That code is pretty old, and also not complete.
Since I have no more use for it, I'm not willing to update it for a complete usage of GetAdaptersAddresses(), but you can try forcing it to use the old way by:

Code: Select all

CreateNetworkAdapterInterface(1)
by HeX0R
Tue Mar 05, 2024 8:05 pm
Forum: Tricks 'n' Tips
Topic: MQTT Framework
Replies: 15
Views: 3308

Re: MQTT Framework

I've added the retain parameter now. Which "future updates" do you expect? I'm using the Client framework in a service tool (with TLS connection) since more than a year without any problems. I'll fix bugs or add missing things, when necessary, but I wouldn't expect much progress here. MQTT...