Search found 28 matches

by vertexview
Tue Jul 08, 2025 6:29 pm
Forum: Coding Questions
Topic: Webview and Javascript
Replies: 17
Views: 2162

Re: Webview and Javascript

@ Kiffi and JHPJHP
Thank you very much. Your codes and remarks open new horizons for my learning.
:D
by vertexview
Tue Jul 08, 2025 3:06 pm
Forum: Coding Questions
Topic: Webview and Javascript
Replies: 17
Views: 2162

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 ...
by vertexview
Tue Jul 08, 2025 1:47 pm
Forum: Coding Questions
Topic: Webview and Javascript
Replies: 17
Views: 2162

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 ...
by vertexview
Mon Jul 07, 2025 10:02 pm
Forum: Coding Questions
Topic: Webview and Javascript
Replies: 17
Views: 2162

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 ...
by vertexview
Mon Jul 07, 2025 3:56 pm
Forum: Coding Questions
Topic: Webview and Javascript
Replies: 17
Views: 2162

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 ...
by vertexview
Sun Jun 22, 2025 5:57 pm
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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 ...
by vertexview
Sat Jun 21, 2025 6:07 pm
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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 ...
by vertexview
Sat Jun 21, 2025 3:22 pm
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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 ...
by vertexview
Tue Jun 17, 2025 4:09 pm
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

Re: DLL wrapper for RTL-SDR

Thanks infratec for your time and explanations.
It works perfectly. :D
by vertexview
Tue Jun 17, 2025 7:24 am
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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.
by vertexview
Mon Jun 16, 2025 3:29 pm
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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 ...
by vertexview
Mon Jun 16, 2025 2:55 pm
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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 ...
by vertexview
Mon Jun 16, 2025 9:35 am
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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 ...
by vertexview
Sun Jun 15, 2025 6:09 pm
Forum: Coding Questions
Topic: DLL wrapper for RTL-SDR
Replies: 39
Views: 5813

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 ...
by vertexview
Sat Apr 20, 2024 2:41 pm
Forum: Coding Questions
Topic: Webview and Javascript
Replies: 17
Views: 2162

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 ...