AutoPlay Media Studio 5.0 Knowledge Base

Determining if Internet Access is Available

Document ID: IR10075
The information in this article applies to:
  • AutoPlay Media Studio 5.0 Professional Edition


This article describes how to determine if internet access is available.


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 5.0, enter the following script into an event in your application:

connected = HTTP.TestConnection("", 20, 80, nil, nil);  

if connected then

--Insert your internet related action here


Dialog.Message("Internet Error", "You are not connected to the internet. Application will now exit");


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.


For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

  • Program Reference | Actions | HTTP | HTTP.TestConnection

KEYWORDS: AutoPlay Media Studio 5.0, HTTP, Internet, Detect Connection

Last reviewed: October 3, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.