9 messages in org.openoffice.fr.progRe: [prog] Connexion à internet
FromSent OnAttachments
Didier Dorange-PattoretApr 21, 2006 9:51 am 
Laurent GodardApr 21, 2006 11:33 am 
Didier Dorange-PattoretApr 21, 2006 11:38 am 
D. CouletteApr 21, 2006 11:53 am 
serg...@free.frApr 23, 2006 11:41 pm 
ARGENTE Jean LouisApr 25, 2006 3:43 am 
serg...@free.frApr 25, 2006 7:27 am 
ARGENTE Jean LouisApr 25, 2006 9:03 am 
serg...@free.frApr 26, 2006 12:22 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] Connexion à internetActions...
From:Laurent Godard (lgod@indesko.com)
Date:Apr 21, 2006 11:33:01 am
List:org.openoffice.fr.prog

Bonsoir didier

Y a-t-il un moyen pour déterminer si l'odinateur est connecté ou non à l'internet ? Pas de blagues... Je veux dire en utilisant une macro :-)

un truc simple mais peut etre pas assez sophistiqué est d'ouvrir une page html et de voir si pas d'erreur

on pourrait taper dansles api systeme mais pas portable peut etre voir ducote du module ucb de OOo sinon

bonne soiree

'non teste function isConnected() as boolean on error goto notConneted open "http://www.google.fr" for input as #1 while not eof(1) line input #1, uneLigne reponse = reponse + uneLigne wend close(1)

if reponse <> "" then isConnected = true else isConnected = false endif

exit function

notConneted: isConnected = false

end function