Indigo Rose Software
  #1  
Old 10-03-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Grin 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.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software