Thank you very much. Your codes and remarks open new horizons for my learning.
Search found 28 matches
- Tue Jul 08, 2025 6:29 pm
- Forum: Coding Questions
- Topic: Webview and Javascript
- Replies: 17
- Views: 2929
Re: Webview and Javascript
@ Kiffi and JHPJHP
Thank you very much. Your codes and remarks open new horizons for my learning.

Thank you very much. Your codes and remarks open new horizons for my learning.
- Tue Jul 08, 2025 3:06 pm
- Forum: Coding Questions
- Topic: Webview and Javascript
- Replies: 17
- Views: 2929
Re: Webview and Javascript
@ JHPJHP
Thank you for your message… It hasn't gone unnoticed.
I visited your website and tested several demo applications. You've developed excellent, high-performance solutions in PureBasic.
My goal here is to learn Purebasic, step by step, and have a better understanding of the great ...
Thank you for your message… It hasn't gone unnoticed.
I visited your website and tested several demo applications. You've developed excellent, high-performance solutions in PureBasic.
My goal here is to learn Purebasic, step by step, and have a better understanding of the great ...
- Tue Jul 08, 2025 1:47 pm
- Forum: Coding Questions
- Topic: Webview and Javascript
- Replies: 17
- Views: 2929
Re: Webview and Javascript
@dige. I know..., it's my question. What is missing ?...
The two markers and circles are made with the Leaflet javascript methods.
The center of the map, and circles, are defined using homeRef variable.
I guess there is a lot more to declare in the Javascript part of the HTML.s to allow access to ...
The two markers and circles are made with the Leaflet javascript methods.
The center of the map, and circles, are defined using homeRef variable.
I guess there is a lot more to declare in the Javascript part of the HTML.s to allow access to ...
- Mon Jul 07, 2025 10:02 pm
- Forum: Coding Questions
- Topic: Webview and Javascript
- Replies: 17
- Views: 2929
Re: Webview and Javascript
Below is another sample code with a Leaflet map.
The objective stay to modify the map center position with a new reference value, after button clicked.
Global HTML.s=""
HTML+ ~"<!DOCTYPE html> \n"+
~"<html lang='en'> \n"+
~"<head> \n"+
~"<meta charset='UTF-8'> \n"+
~"<title>Leaflet</title> \n ...
The objective stay to modify the map center position with a new reference value, after button clicked.
Global HTML.s=""
HTML+ ~"<!DOCTYPE html> \n"+
~"<html lang='en'> \n"+
~"<head> \n"+
~"<meta charset='UTF-8'> \n"+
~"<title>Leaflet</title> \n ...
- Mon Jul 07, 2025 3:56 pm
- Forum: Coding Questions
- Topic: Webview and Javascript
- Replies: 17
- Views: 2929
Re: Webview and Javascript
Hello,
About the Webview Gadget, I would like to know if there is a good method to modify a JS variable value using WebViewExecuteScript .
Below is the example with text in a button modified when it is clicked.
... but how can I change the HomeLoc value defined in the first tagged script from my ...
About the Webview Gadget, I would like to know if there is a good method to modify a JS variable value using WebViewExecuteScript .
Below is the example with text in a button modified when it is clicked.
... but how can I change the HomeLoc value defined in the first tagged script from my ...
- Sun Jun 22, 2025 5:57 pm
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
Here is the window version with the last code evolution:
. Stable asynchronous rtl-sdr data reading (threads, semaphore)
. ADSB results are shown in a ListIcon gadget
. Long frame signification is added in the ListIcon Comment column.
. RTL-SDR status is in Application StatusBar
EnableExplicit ...
. Stable asynchronous rtl-sdr data reading (threads, semaphore)
. ADSB results are shown in a ListIcon gadget
. Long frame signification is added in the ListIcon Comment column.
. RTL-SDR status is in Application StatusBar
EnableExplicit ...
- Sat Jun 21, 2025 6:07 pm
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
Thank you infratec .
No more Window hang, and now can softly close the application.
Threadproc process loop
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
Threadproc process loop
ReadBuffer size ...
No more Window hang, and now can softly close the application.
Threadproc process loop
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
ReadBuffer size: 262144
Threadproc process loop
ReadBuffer size ...
- Sat Jun 21, 2025 3:22 pm
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
After using rtlsdr_read_async in console application, i tried to use a window form with the same code (read_async, thread/semaphore).
I simplfied the application code to have only an empty window, the SDR initialization, and the frame ADSB data processing with hex values display.
Finally, i can ...
I simplfied the application code to have only an empty window, the SDR initialization, and the frame ADSB data processing with hex values display.
Finally, i can ...
- Tue Jun 17, 2025 4:09 pm
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
Thanks infratec for your time and explanations.
It works perfectly.
It works perfectly.
- Tue Jun 17, 2025 7:24 am
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
New test done. Compilation and SDR dongle initialization OK.
No error in Log. Debug console returns "ReadBuffer ctx:0" in loop.
No error in Log. Debug console returns "ReadBuffer ctx:0" in loop.
- Mon Jun 16, 2025 3:29 pm
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
New Debug line added
Procedure.i ReadBuffer(*buffer, size.i, *ctx)
Debug("ReadBuffer procedure called")
If *ctx = #Null
Debug("ProcedureReturn 0 debug")
ProcedureReturn 0
EndIf
; CopyMemory in Delphi (Destination: Pointer; Source: Pointer; Length: DWORD)
; CopyMemory in Purebasic ...
Procedure.i ReadBuffer(*buffer, size.i, *ctx)
Debug("ReadBuffer procedure called")
If *ctx = #Null
Debug("ProcedureReturn 0 debug")
ProcedureReturn 0
EndIf
; CopyMemory in Delphi (Destination: Pointer; Source: Pointer; Length: DWORD)
; CopyMemory in Purebasic ...
- Mon Jun 16, 2025 2:55 pm
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
I added two Debug lines in ReadBuffer() procedure.
. The first debug line test is periodically reached, so the Callback is working.
. The second debug line is never reached, so no CopyMemory action nor Semaphore creation.
Procedure.i ReadBuffer(*buffer, size.i, *ctx)
Debug("ReadBuffer procedure ...
. The first debug line test is periodically reached, so the Callback is working.
. The second debug line is never reached, so no CopyMemory action nor Semaphore creation.
Procedure.i ReadBuffer(*buffer, size.i, *ctx)
Debug("ReadBuffer procedure ...
- Mon Jun 16, 2025 9:35 am
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
Thank you very much infratec . I tried your code.
It compiled without any difficulty with two modifications:
1) Global Dim pythagore.a(127,127) is replaced with Global Dim pythagore.a(128,128)
Else, i have [Error] Array index out of bounds .
2) A conditional check is added in TreadProc(*Dummy ...
It compiled without any difficulty with two modifications:
1) Global Dim pythagore.a(127,127) is replaced with Global Dim pythagore.a(128,128)
Else, i have [Error] Array index out of bounds .
2) A conditional check is added in TreadProc(*Dummy ...
- Sun Jun 15, 2025 6:09 pm
- Forum: Coding Questions
- Topic: DLL wrapper for RTL-SDR
- Replies: 39
- Views: 6722
Re: DLL wrapper for RTL-SDR
Hello,
Last year i worked on the RTL-SDR dongle Purebasic wrapper.
Again, many thanks to infratec for his great help leading to the "libsdr.pbi" file.
In my post above, you can find the working example for ADSB decoding using synchronous buffer reading function (rtlsdr_read_sync) in console mode ...
Last year i worked on the RTL-SDR dongle Purebasic wrapper.
Again, many thanks to infratec for his great help leading to the "libsdr.pbi" file.
In my post above, you can find the working example for ADSB decoding using synchronous buffer reading function (rtlsdr_read_sync) in console mode ...
- Sat Apr 20, 2024 2:41 pm
- Forum: Coding Questions
- Topic: Webview and Javascript
- Replies: 17
- Views: 2929
Re: Webview and Javascript
Thank you Kiffi,
I modified my string definition.
The simplest solution was to replace the lines containing localy referenced files (leaflet.css and leaflet.js) with networked referenced ones
Not operationnal:
~"<link rel=\"stylesheet\" href=\"js/leaflet.css\" />\n"+
~"<script src=\"js/leaflet.js ...
I modified my string definition.
The simplest solution was to replace the lines containing localy referenced files (leaflet.css and leaflet.js) with networked referenced ones
Not operationnal:
~"<link rel=\"stylesheet\" href=\"js/leaflet.css\" />\n"+
~"<script src=\"js/leaflet.js ...