|
#1
|
||||
|
||||
|
Determining if Internet Access is Available
Question:
Can I determine if the user has an Internet connection using AutoPlay Media Studio? Answer: If your application utilizes the Internet in any way, you can check to ensure that the user has internet access before continuing, and if they do not, prompt the user to connect. To accomplish this in AutoPlay Media Studio, enter the following script into an event in your application: connected = HTTP.TestConnection("http://www.indigorose.com", 20, 80, nil, nil); if connected then --Insert your internet related action here else Dialog.Message("Internet Error", "You are not connected to the internet. Application will now exit"); Application.Exit(); end This script checks if the user is connected to the Internet. If after 20 seconds the program cannot find a valid internet connection, it notifies the user, and exits. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disabling requested access to the internet. | cdex | AutoPlay Media Studio 5.0 | 7 | 05-23-2007 06:06 PM |
| Internet Access | rhosk | AutoPlay Media Studio 5.0 | 10 | 01-28-2004 05:42 AM |
| Determining if Internet Access is Available | Desmond | AutoPlay Media Studio 5.0 Examples | 0 | 10-03-2003 12:10 PM |
| Determining what Version of Internet Explorer is Installed | Desmond | AutoPlay Media Studio 5.0 Examples | 0 | 10-03-2003 11:59 AM |
| Runtime wants to access the internet | ovm | AutoPlay Media Studio 4.0 | 10 | 03-09-2003 06:29 PM |
All times are GMT -6. The time now is 03:57 AM.








Linear Mode

