Search found 2437 matches

by ricardo
Fri Dec 20, 2024 5:11 am
Forum: Coding Questions
Topic: Populate recursive treegadget with directory and subdirs and files?
Replies: 3
Views: 596

Re: Populate recursive treegadget with directory and subdirs and files?

AZJIO wrote: Fri Dec 20, 2024 4:18 am viewtopic.php?t=77012
Hi,

But do you have some code that copuld help as starting point?

Best Regards
by ricardo
Fri Dec 20, 2024 3:16 am
Forum: Coding Questions
Topic: Populate recursive treegadget with directory and subdirs and files?
Replies: 3
Views: 596

Populate recursive treegadget with directory and subdirs and files?

Hi,

Maybe there is some example here about populating a treegadget with the folders and files recursive of a directory.

Any help are welcome :)
by ricardo
Tue Dec 17, 2024 9:56 pm
Forum: Windows
Topic: Strange problem with FFMPEG's stdout
Replies: 16
Views: 17979

Re: Strange problem with FFMPEG's stdout

In fact in FFMPEG tou can use also this at the end of the command to redirect both outputs (st and err) to the same output


-f null NUL 2>&1

Like in:

FFMPEG -i input.mp3 -f null NUL 2>&1
by ricardo
Fri Nov 15, 2024 9:33 pm
Forum: Coding Questions
Topic: Enabling Drop on WebGadget
Replies: 9
Views: 2608

Re: Enabling Drop on WebGadget

breeze4me wrote: Fri Nov 15, 2024 2:49 pm To get all dropped filenames, use a loop.

Great. Thanks.
by ricardo
Fri Nov 15, 2024 1:20 am
Forum: Coding Questions
Topic: Enabling Drop on WebGadget
Replies: 9
Views: 2608

Re: Enabling Drop on WebGadget


The following code works on Windows 7.

Global old

Procedure WebGadgetWProc(hwnd, msg, wParam, lParam)
Protected count, sz, *m, file$

If msg = #WM_DROPFILES
count = DragQueryFile_(wParam, -1, 0, 0)
If count >= 1
sz = DragQueryFile_(wParam, 0, 0, 0)
If sz > 0
sz + 1
*m = AllocateMemory ...
by ricardo
Thu Nov 07, 2024 3:31 am
Forum: Windows
Topic: Strange problem with FFMPEG's stdout
Replies: 16
Views: 17979

Re: Strange problem with FFMPEG's stdout

For the records, add this to your FFMPEG command: -progress pipe:2

and you will be able to read as stdout.
by ricardo
Mon Sep 30, 2024 5:57 am
Forum: Coding Questions
Topic: Gadgets in several windows
Replies: 4
Views: 868

Re: Gadgets in several windows

Demivec wrote: Mon Sep 30, 2024 1:01 am You would have to use UseGadgetList() and specify the window ID for the window in question.
Yes, i remeber the solution after posting, Thanks.
by ricardo
Mon Sep 30, 2024 12:54 am
Forum: Coding Questions
Topic: Gadgets in several windows
Replies: 4
Views: 868

Re: Gadgets in several windows

Its UseGadgetList() right?
by ricardo
Mon Sep 30, 2024 12:13 am
Forum: Coding Questions
Topic: Gadgets in several windows
Replies: 4
Views: 868

Gadgets in several windows

I have not used PureBasic much for several years and I have forgotten something basic:

I have created 3 windows and now I want to create a gadget that appears in the first window. When I have already created the 3 windows and each one with its own gadgets, but I want to dynamically create a gadget ...
by ricardo
Wed Sep 25, 2024 11:58 pm
Forum: Coding Questions
Topic: Get the URL using WebViewGadget?
Replies: 13
Views: 2749

Re: Get the URL using WebViewGadget?

breeze4me wrote: Sat Sep 21, 2024 6:10 pm You can also implement ICoreWebView2NavigationCompletedEventHandler as shown below.
Great.

Thanks !!
by ricardo
Sun Aug 11, 2024 8:06 pm
Forum: Coding Questions
Topic: Use proxy with WebViewGadget?
Replies: 15
Views: 4010

Re: Use proxy with WebViewGadget?


If you wanted to do that cross platform wouldn't use http request with CONNECT or via curl since flag is missing in httprequest.
Im trying to understand what the question is as there are numerous kinds of proxy. So does this handle https transparent proxy?


No, i want to do for Windows only ...
by ricardo
Fri Aug 09, 2024 11:09 pm
Forum: Coding Questions
Topic: Use proxy with WebViewGadget?
Replies: 15
Views: 4010

Re: Use proxy with WebViewGadget?


Thanks. I already download it.

But i dont find examples in the zip.

Where can i find examples?

What differences have with the PB WebViewGadget?

:)
by ricardo
Fri Aug 09, 2024 7:14 am
Forum: Coding Questions
Topic: Use proxy with WebViewGadget?
Replies: 15
Views: 4010

Re: Use proxy with WebViewGadget?


This might help assuming it's not node.js specific, see the 2nd code block down
maybe you can do that in the web gadget
https://arh.antoinevastel.com/nodejs/2022/02/26/nodejs-optimized-https-proxy-no-dependencies.html



Hi, thanks.

But this is for use in some http request and not for ...
by ricardo
Fri Aug 09, 2024 7:14 am
Forum: Coding Questions
Topic: Use proxy with WebViewGadget?
Replies: 15
Views: 4010

Re: Use proxy with WebViewGadget?


In my WebView2Gadget() I do it like this:

Procedure.i WebView2Gadget(Gadget.i, x.i, y.i, width.i, height.i, URL$, Window.i=#PB_Any, Proxy$="", ProxyBypass$="")
:
:
:
If Proxy$ = ""
Options$ + "--no-proxy-server "
Else
Options$ + "--proxy-server=" + #DQUOTE$ + Proxy$ + #DQUOTE$ + " "
EndIf
If ...
by ricardo
Thu Aug 08, 2024 10:56 pm
Forum: Coding Questions
Topic: Use proxy with WebViewGadget?
Replies: 15
Views: 4010

Re: Use proxy with WebViewGadget?

HTTPS proxies for navigate, just to navigate using a different IP.

Sometime ago i used this:


Structure INTERNET_PROXY_INFO1
dwAccessType.l
lpszProxy.l
lpszProxyBypass.l
EndStructure

#INTERNET_OPTION_PROXY = 38

ProcedureDLL SetProxy1(Proxy.s, Port.l, flags.l=#INTERNET_OPEN_TYPE_PROXY) ; Set ...