PDA

View Full Version : Timer controlled progress bar


Superbank
06-07-2009, 12:03 PM
Is it possible to catch MSGID_ONTIMER before the HTTP.TestConnection action is finished?

I am trying to display a timer controlled progress bar during the HTTP.TestConnection action (up to 20 seconds).

I set Screen.StartTimer(1000) and want to step the progress bar by 5% every second until the HTTP.TestConnection action is finished.

Is there any other way to show the progress of HTTP.TestConnection action?

I need some kind of visual progress indicator to entertain the user for 20 seconds while HTTP.TestConnection is trying to verify the conection to my server...

jassing
06-09-2009, 04:37 PM
I believe that the .testconnection is preemptive, in that it's exclusive during that time.

Superbank
06-11-2009, 05:33 AM
Yes, I am afraid we can not do anything until HTTP.TestConnection is completed...

HTTP.TestConnection as well as other HTTP and FTP actions should have been implemented in a separate thread...

Anyway I found that HTTP.TestConnection is not so reliable. With my Internet provider (and this may be the case with many other providers all over the world) in order to log in and be able to use Internet we need to issue any HTTP GET request which will always be successful and whatever URL you want to access you will always be redirected to the provider's login web page.

Even before you are actually logged in, the HTTP.TestConnection will return TRUE assuming you are connected to Internet, but your not connected until you properly log in with your username and password and then you are able to use Internet.