Seite 3 von 3

Verfasst: 05.10.2007 21:56
von a14xerus
ganz komisches ding is das....

Code: Alles auswählen

Global string.s, oldstring.s

Repeat
  Delay(1)
  oldstring = string
  string = Space(1024)
  hwnd = GetForegroundWindow_()
  GetWindowText_(hwnd,@string,1024)
  If string <> oldstring
    Debug string
  EndIf
ForEver
Es ist jedenfalls nicht das "foregroundwindow", obwohl es alle anderen auf jeden fall überlappt.
vll ist es ein Child-Window von irgendeinem Windows ding (wie zb taskleiste oder desktop o.ä.)

Verfasst: 15.12.2007 19:33
von Scarabol
Hat vielleicht jemand ne kleine Liste dieser Windowsfenster?

Gruß
Scarabol

Verfasst: 16.12.2007 02:31
von Ligatur
Und wenn man mit GetParent_() überprüft ob das DesktopWindow (GetDesktopWindow_()) das ParentWindow ist? Das ist zwar nicht ganz 100%ig aber fast.

Verfasst: 16.12.2007 02:40
von Scarabol
Hi Leute,

das Alt-Tab Fenster hat keinen Namen, aber eine Klasse "TaskSwitch".

hwnd = FindWindow_("TaskSwitch", 0)

Wie kann ich nun die Gadgets bzw. den Inhalt auslesen?

Gruß
Scarabol