1. Non-blocking download

hi!

How can I do a http download without blocking the UI, using either wxeuphoria or win32lib (I prefer wxeuphoria, but wherever...)

I've tryed the "Asynchronous HTTP" in The Archive (http://www.rapideuphoria.com/http.zip) but it was designed to old "onEvent" win32lib. I've tryed to convert to current "setHandler()" but with no success, im not skilled enough..>

Can anyone more "euphoric" convert this lib? or point me a solution to download a http file without blocking the UI?

Sorry for my bad english, and thanks in advance

new topic     » topic index » view message » categorize

2. Re: Non-blocking download

xfox26 said...

hi!

How can I do a http download without blocking the UI, using either wxeuphoria or win32lib (I prefer wxeuphoria, but wherever...)

I've tryed the "Asynchronous HTTP" in The Archive (http://www.rapideuphoria.com/http.zip) but it was designed to old "onEvent" win32lib. I've tryed to convert to current "setHandler()" but with no success, im not skilled enough..>

Can anyone more "euphoric" convert this lib? or point me a solution to download a http file without blocking the UI?

Sorry for my bad english, and thanks in advance



Look at news.ex (or whatever it's called now) in Eu v4.

useless

new topic     » goto parent     » topic index » view message » categorize

3. Re: Non-blocking download

I've decided to not move to euphoria 4 while it's in beta stage, maybe it's time to move now?

As win32lib have issues with Eu4, and I primarly use win32lib and wxeuphoria, I stayed with 3.11 by now...

new topic     » goto parent     » topic index » view message » categorize

4. Re: Non-blocking download

Hello xfox26,

To download I use Urlmon.ew (in the Archives) .

It works fine for me. I don't know what you mean by 'blocking the UI'. What's the UI?

I never had any trouble with blocking anything when downloading.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

5. Re: Non-blocking download

My recommendation is to install wget.exe or curl.exe and then run that command via system() to download the url.

I think you can do system("start wget http://url.tld/page", 2) and it will start the command in the background while allowing your GUI to run.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu