Autor Beitrag
Borlox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Do 31.10.02 18:53 
Hi Leute,

hat irgendjemand eine Idee, wie man abfragen kann, ob man online ist? OHNE das bei der Prüfung er versucht anzuwählen??
Habe das ganze Forum durchsucht, aber nur Möglichkeiten gefunden, bei denen er immer versucht anzuwählen! Wie z.B. das Pingen!!!

Borlox
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Do 31.10.02 19:52 
Das müsste dir eigentlich weiterhelfen. "Wie kann ich überprüfen ob eine Verbindung zum Internet besteht?"

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
Michi_Mueller
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Sa 02.11.02 11:16 
He Jungs, nen bissel kompliziert oder?

Versuchs doch einfach mit der Indy Komponente IPWatch.

So fragste das ab:

ausblenden Quelltext
1:
if IdIPWatch.IsOnline then ...........					
Borlox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Sa 02.11.02 12:45 
Titel: IdIPWatch
Hi,

ich habe es versucht mit der Indy Komponente, genau nach deinem Code, aber er kennt das IsOnline nicht!
Zitat:
[Error] Unit1.pas(32): Undeclared identifier: 'IsOnline'

??????????????
Borlox
littlemike1005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 187



BeitragVerfasst: Sa 02.11.02 13:42 
Titel: Doch
Bei mir kennt er den Befehl IdIpWatch1.isOnline aber wenn ich das in eine label schreibe.
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
if idipwatch1.isonline then 
 begin
  label1.caption:='online'; 
 end else begin
               label1.cation1:='offline';
              end;

dan compil. er das auch aber es ist egal ob ich online oder offline bin er zeigt immer online.

(02.11.02 16:41 Tino) Code-Tags hinzugefügt.
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Sa 02.11.02 14:04 
dann gehtst du warscheinlich über DSL online und er fragt die Netzwerkkarte ab ... und die is nun mal (solange nen Kabel drinn is) online ...

MfG BungeeBug
littlemike1005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 187



BeitragVerfasst: Sa 02.11.02 15:55 
Titel: @BungeeBug
MMMMMMMHHHHH JAP daran habe ich noch nicht gedacht.
Michi_Mueller
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Sa 02.11.02 16:45 
@Borlox:
In meine Code war auch nen Fehler! Es muss natürlich so aussehen:

if idipwatch1.isonline then :oops:

Aber ich hab da nen ganz anderes Problem. Hab auch DSL aber bei mir is er die ganze Zeit offline und das versteh ich nun ehrlich nich!
littlemike1005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 187



BeitragVerfasst: Sa 02.11.02 16:57 
Titel: NEIN
Ok Ich glaube wir lassen es jetzt besser. Bei dem einen so und bei dem anderen so. ne das versteh ich jetzt auch nicht so ganz.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 02.11.02 17:30 
InternetGetConnectedState aus WinSock.
littlemike1005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 187



BeitragVerfasst: Sa 02.11.02 18:24 
Titel: NO
Nö auch das geht nicht mit DSL
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
uses WinInet;

procedure TForm1.Button1Click(Sender: TObject);
begin
  If  InternetGetConnectedState(nil, 0) then
    Caption := 'Online'
  else
    Caption:='Offline';
end;
Anzeige erfolg als formname oben links

(Quelle: Easy Delphi Helper)

(03.11.02 12:14 Tino) Code-Tags hinzugefügt.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 02.11.02 19:50 
Also das geht bei mir mit DSL:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.Button1Click(Sender: TObject); 
var 
  dwResult : cardinal; 
begin 
  dwResult := 0; 
  if Internetgetconnectedstate(@dwResult,0) then 
    showmessage('ONLINE') 
  else 
    ShowMessage('OFFLINE'); 
end;


Nur wenn man hinnter einen Router sitzt bekommt man Probleme.
Borlox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Sa 02.11.02 22:24 
Titel: ???
Was für eine Komponente brauche ich für den oben genannten Code???
Und woher kann ich diese bekommen???

Danke
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 03.11.02 02:56 
Für meinen? WinInet mit einbinden.
littlemike1005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 187



BeitragVerfasst: Mo 04.11.02 17:28 
Titel: Nööö
Bei mir ist auch mit diesem code dauer online angesagt :oops:
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 04.11.02 19:28 
Hoffentlich hast du 'ne Flat Rate. :mrgreen:
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Mo 04.11.02 21:41 
Hallo,

und wie sieht es aus, wenn man seine eigene IP abfragt?

Zum Beispiel: if Ip <> "192.(...)" then Online

Das ist nur so eine Idee, denn ich weiss grad nicht, ob die eigene Ip-Adresse im Offline-Status auch anders als z.bsp. "192.168.0.1" sein kann.

_________________
If accidentally read, induce vomitting.
littlemike1005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 187



BeitragVerfasst: Mo 04.11.02 21:42 
Titel: Klar
Sicher dat habe ich ne FLAT :wink: :lol: :D

Ne jetzt im ernst auch wenn ich DFÜ trenne zeigt Proggi Online.
Aber mein Rechner kennt aber auch nur den Status online. Ob gleich ich diesen Monat noch nicht viel traffic habe erst 489 MB

Gruss Michael
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Mo 04.11.02 21:52 
Titel: Re: Klar
littlemike1005 hat folgendes geschrieben:
Ob gleich ich diesen Monat noch nicht viel traffic habe erst 489 MB


Dann besorg´ dir Kazaa. Dann hast du das täglich. :lol:

_________________
If accidentally read, induce vomitting.
littlemike1005
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 187



BeitragVerfasst: Mo 04.11.02 21:54 
Titel: Habe ich
Ich habe Kazaa aber was soll ich alles saugen??? Muke? wüsste nicht was!!!

Habe ja hoffe ja das meine Brude da abhilfe schaft der ist diese Woche wieder da.