| View previous topic :: View next topic |
| Author |
Message |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Wed Oct 09, 2002 7:02 pm Post subject: |
|
|
Would a DLL made to check the InetIsOffline API be reliable?
Could be used with Gadget of course also. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2150 Location: A House
|
Posted: Wed Oct 09, 2002 8:10 pm Post subject: |
|
|
VDSDLL 2.7
| Code: | %A = @net(time,time,[time server here])
%B = @net(time,offset)
If @null(%B)
REM Not connected to the internet
Else
REM Connected to the interent
End
|
Doubt much that this would be cached in a proxy.
Please refer to the VDSDLL 2.7 Help File for more information on the time
function.
-Garrett |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Wed Oct 09, 2002 10:46 pm Post subject: ONLINE STATUS = Feedback on thinking requested! |
|
|
EDITED: 10/10/2002
Dumped the code below...I concluded it was poo.
NT
============END OF EDIT
vdselm and vdsipp required
PURPOSE = to check for ONLINE status.
feedback requested on code/thinking below!
I would like to know if i'm way off track?
All feedback welcomed!
Thanks,
noveltech |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Thu Oct 10, 2002 10:40 pm Post subject: |
|
|
How can I get the below script to time out within 5 seconds?
It seems to wait forever if not online.
All feedback welcomed! nt
| Code: |
runh ping.exe -n 1 www.winzip.com,wait
%%output = @retcode()
if @equal(%%output,0)
info This computer is connected to the Internet
else
info This computer is off-line
end
|
Last edited by noveltech on Fri Oct 11, 2002 8:06 pm; edited 1 time in total |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Oct 11, 2002 5:27 pm Post subject: |
|
|
Well, don't know what you're making, but if its for example a check-script just like the Forum-checker, just put the code What to do if online after it.
| Code: | runh ping.exe -n 1 www.winzip.com,wait
info Now you're connected
warn Do what you want...
|
Ps. You can see it as a kind of loop with no other code in it...
repeat
until @connected() |
|
| Back to top |
|
 |
|