Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:45 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Check If Internet Is Available
PostPosted: March 22nd, 2012, 4:23 pm 
Offline

Joined: May 25th, 2008, 4:57 pm
Posts: 355
Location: Ireland
Opus: Pro 9.75
OS: Windows 10
System: MacBook Pro (Intel 2020)
Hi All,

This might seem like a silly question. But how is it possible to get Opus via scripting or actoins to check if the internet is available.

I have tried just posting to the web, but once I unplug the internet, the code just stops.

Code:
if(InternetPostData(URL_Time, obj, false))
{
Debug.trace("TRUE\n");
}

else
{
Debug.trace("FALSE\n");
}




When I have Internet turned on this works nicely, getting true each time. But if I unplug the internet, I get no response, neither true or false. Function stops at the InternetPostData, so I can't set a variable to 0 to signal that internet is unavailable.

Am I missing something very simple here?

Thanks in advance.

_________________
Opus Pro 9.75 on MacBookPro (2020 Intel) running Parallels 19 with Windows 10 (x64)


For this message lmc has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Check If Internet Is Available
PostPosted: March 23rd, 2012, 12:43 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
This is an interesting question. Curiosity prompted me to google on it more generally.:arrow: How does Windows OS keep that little network icon updated?

Many search results returned... here's one.
http://blog.superuser.com/2011/05/16/wi ... awareness/

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 56 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group