Announcement

Collapse
No announcement yet.

Determining if Internet Access is Available

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Determining if Internet Access is Available

    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

    SUMMARY

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

    DISCUSSION

    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("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.

    MORE INFORMATION

    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.
Working...
X