Indigo Rose Software
  #1  
Old 11-22-2007
Adam's Avatar
Adam Adam is offline
Indigo Rose Staff Member
 
Join Date: May 2000
Location: Indigo Rose Software
Posts: 2,154
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.
Reply With Quote
Reply

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 Off


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.


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