Autor Beitrag
ThEGZA
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 11.09.02 14:32 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Here's a bit of code that will probably help you on your way:

--------------------------------------------------------------
HWND h, hmdi, hwndKazaa, hwndDLTraffic;

hwndKazaa = FindWindow( "Kazaa", NULL );
hmdi=FindWindowEx(hwndKazaa,NULL,"MDIClient",NULL);
h=FindWindowEx(hmdi,NULL,NULL,"Traffic");//traffic tab
h=FindWindowEx(h,NULL,NULL,NULL); // download part
h=FindWindowEx(h,NULL,NULL,NULL); //dialog
h=FindWindowEx(h,NULL,NULL,NULL); //static
hwndDLTraffic=FindWindowEx(h,NULL,"SysTreeView32",NULL); //download
systreeview32


kann mir einer das mal in delphi übersetzen ???
ich bin zu dumm dafür :(

_________________
-= Ein Compiler tut nicht was man will ... sondern was man schreibt =-
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 11.09.02 15:03 
Hi,

ich kann zwar kein C, aber hier ist mal mein Versuch:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
var
  h,hmdi,hwndKazaa,hwndDLTraffic: HWND;
begin
  hwndKazaa := FindWindow( 'Kazaa', 0 );
  hmdi := FindWindowEx(hwndKazaa,0,'MDIClient',0);
  h := FindWindowEx(hmdi,0,'','Traffic');
  h := FindWindowEx(h,0,'','');
  h := FindWindowEx(h,0,'','');
  h := FindWindowEx(h,0,'','');
  hwndDLTraffic := FindWindowEx(h,0,'SysTreeView32','');
end;


Ist aber nicht getestet. :mrgreen:

_________________
Viele Grüße
Jakob
ThEGZA Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 11.09.02 15:31 
ok danke aber arbeitest du immer mit 0 ???
ich benutze für sowas immer Nil :)
weiß zwar net ob da ein unterschied besteht aber auf jeden fall thx :wink:

_________________
-= Ein Compiler tut nicht was man will ... sondern was man schreibt =-
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 11.09.02 15:44 
soweit ich weiss, erwartet FindWindowEx als zweiten Parameter ein Handle. Da bei einem Handle 0 = nil ist, habe ich 0 eingesetzt. Nil geht aber auch. Achja, 0 ist außerdem noch kürzer :wink:

_________________
Viele Grüße
Jakob
ThEGZA Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 11.09.02 15:51 
löl ok du hast mich überredet :wink:

_________________
-= Ein Compiler tut nicht was man will ... sondern was man schreibt =-
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 11.09.02 16:29 
ThEGZA hat folgendes geschrieben:
ok danke aber arbeitest du immer mit 0 ???
ich benutze für sowas immer Nil :)

Spätestens bei der Reaktion hätte ich bereut, ihm geholfen zu haben. :twisted:
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 11.09.02 16:32 
da drücken wir jetzt mal ein Auge zu :mrgreen:

_________________
Viele Grüße
Jakob
ThEGZA Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 11.09.02 20:04 
sorry war aber wirklich net bös gemeint :)
peace

_________________
-= Ein Compiler tut nicht was man will ... sondern was man schreibt =-
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Mi 11.09.02 20:28 
habe ich auch nicht so aufgefasst :wink:

_________________
Viele Grüße
Jakob