You can try to send #ETX
ThreadParameter\StdIn$ = #ETX$
Search found 7138 matches
- Wed Dec 17, 2025 3:19 pm
- Forum: Tricks 'n' Tips
- Topic: Handle an external program via stdin/out/error
- Replies: 49
- Views: 18044
- Mon Dec 15, 2025 8:57 am
- Forum: Linux
- Topic: Linux UDP server
- Replies: 13
- Views: 2975
Re: Linux UDP server
Code: Select all
Procedure.i SendUDPString(IP$, Port.i, Text$)
Protected.i Con, Result
Con = OpenNetworkConnection(IP$, Port, #PB_Network_UDP)
If Con
Result = SendNetworkString(Con, Text$)
CloseNetworkConnection(Con)
EndIf
ProcedureReturn Result
EndProcedure
- Mon Dec 15, 2025 8:52 am
- Forum: Linux
- Topic: Linux UDP server
- Replies: 13
- Views: 2975
Re: Linux UDP server
You need to open a connection to it.
Even is it not a real connection, the OS needs to know to whom it should send the packet.
Same in every language.
- Mon Dec 15, 2025 8:37 am
- Forum: Linux
- Topic: Linux UDP server
- Replies: 13
- Views: 2975
Re: Linux UDP server
:?: :?: :?:
To whom you will send your data?
You need to open a connection to it.
Even is it not a real connection, the OS needs to know to whom it should send the packet.
Same in every language.
You need to write a procedure SendData().
Or you need to get more familar with networking, than you ...
To whom you will send your data?
You need to open a connection to it.
Even is it not a real connection, the OS needs to know to whom it should send the packet.
Same in every language.
You need to write a procedure SendData().
Or you need to get more familar with networking, than you ...
- Sun Dec 14, 2025 11:36 am
- Forum: Coding Questions
- Topic: WebView & JavaScript return String
- Replies: 11
- Views: 425
Re: WebView & JavaScript return String
I think you did not 100% understand the function of BindWebViewCallback()
It creates an own 'hidden' function inside of the webpage.
This function can then be called by something.
I added the following to the second button:
Case #PB_Event_Gadget
Select EventGadget()
Case MenuSx
pio(EventType ...
It creates an own 'hidden' function inside of the webpage.
This function can then be called by something.
I added the following to the second button:
Case #PB_Event_Gadget
Select EventGadget()
Case MenuSx
pio(EventType ...
- Sat Dec 13, 2025 11:45 pm
- Forum: Coding Questions
- Topic: WebView & JavaScript return String
- Replies: 11
- Views: 425
Re: WebView & JavaScript return String
Hm ...
I see a more or less empty window.
One button is << and the other is empty.
And the file map.html is never used.
So I don't know what should happen.
I see a more or less empty window.
One button is << and the other is empty.
And the file map.html is never used.
So I don't know what should happen.
- Sat Dec 13, 2025 7:47 pm
- Forum: Coding Questions
- Topic: WebView & JavaScript return String
- Replies: 11
- Views: 425
Re: WebView & JavaScript return String
It takes to long time for me to write a working code.
Please write a working code and I try to solve your problem.
Please write a working code and I try to solve your problem.
- Thu Dec 11, 2025 9:04 pm
- Forum: The PureBasic Editor
- Topic: Higher quality icon and logo
- Replies: 15
- Views: 597
Re: Higher quality icon and logo
:mrgreen: :mrgreen: :mrgreen:
These are 'fake' SVGs and not what I meant with 'real' SVGs.
I already thought that this would be done and wrote 'real' SVGs to avoid this :wink: .
This method of including pixel based images into an SVG compromises the idea of SVG.
If I have ever time, I will try to ...
These are 'fake' SVGs and not what I meant with 'real' SVGs.
I already thought that this would be done and wrote 'real' SVGs to avoid this :wink: .
This method of including pixel based images into an SVG compromises the idea of SVG.
If I have ever time, I will try to ...
- Thu Dec 11, 2025 7:38 pm
- Forum: Feature Requests and Wishlists
- Topic: Return value of GetHIDReportDescriptor(()
- Replies: 3
- Views: 186
Return value of GetHIDReportDescriptor(()
In my opinion it would be better to return a pointer to a binary buffer instead of a hex string.
You always need to decode the descriptor.
It is much more work to return the string back to byte values, then using PeekA() or a byte pointer.
A string makes no sense.
And using FreeMemory() after ...
You always need to decode the descriptor.
It is much more work to return the string back to byte values, then using PeekA() or a byte pointer.
A string makes no sense.
And using FreeMemory() after ...
- Thu Dec 11, 2025 6:56 pm
- Forum: General Discussion
- Topic: HID Descriptor Tool
- Replies: 16
- Views: 602
Re: HID Descriptor Tool
VID and PID a normally always in hex, so I changed 2 lines:
ms.s + "HID VID: " + RSet(Hex(Val(HIDInfo(#PB_HID_VendorId,GetScreenGadgetState(lw)+1))), 4, "0") + #CRLF$
ms.s + "HID PID: " + RSet(Hex(Val(HIDInfo(#PB_HID_ProductId,GetScreenGadgetState(lw)+1))), 4, "0") + #CRLF$
ms.s + "HID VID: " + RSet(Hex(Val(HIDInfo(#PB_HID_VendorId,GetScreenGadgetState(lw)+1))), 4, "0") + #CRLF$
ms.s + "HID PID: " + RSet(Hex(Val(HIDInfo(#PB_HID_ProductId,GetScreenGadgetState(lw)+1))), 4, "0") + #CRLF$
- Tue Dec 09, 2025 8:49 pm
- Forum: The PureBasic Editor
- Topic: Higher quality icon and logo
- Replies: 15
- Views: 597
Re: Higher quality icon and logo
Please ask ChatGPT to produce real SVGs and not PNGs to get higher quality.
- Mon Dec 08, 2025 7:22 pm
- Forum: Bugs - Windows
- Topic: [Done] PB 6.30 B5 x64 HID.pb not available
- Replies: 1
- Views: 204
[Done] PB 6.30 B5 x64 HID.pb not available
Not really a code bug, but I didn't found the file HID.pb.
It is mentioned in the german help.
It is mentioned in the german help.
- Wed Dec 03, 2025 8:44 am
- Forum: Coding Questions
- Topic: [REVIDSED] OpenFtp() only fails -- other clients work fine.
- Replies: 9
- Views: 458
Re: OpenFtp() only fails -- other clients work fine.
You know that you have a space in front of the URL?
- Mon Dec 01, 2025 1:57 pm
- Forum: Coding Questions
- Topic: [REVIDSED] OpenFtp() only fails -- other clients work fine.
- Replies: 9
- Views: 458
- Mon Dec 01, 2025 8:57 am
- Forum: Coding Questions
- Topic: What is the difference between a binary file on different OS?
- Replies: 6
- Views: 521
Re: What is the difference between a binary file on different OS?
The kernel is not guilty
Else all programs needs to available double if you boot for example with a 5. kernel instead of a 6. kernel after you updated your distribution.
Else all programs needs to available double if you boot for example with a 5. kernel instead of a 6. kernel after you updated your distribution.