English
Source / code snippets

detect Exe Window find lever names

 

Frank
Abbing

CompileMarkSeparation
Findet alle aktiven Fenster, auch wenn sie im Iconmodus sind
Ermittelt Fensterhandle, HInstance des Fensters und Fensternamen
(c) Frank Abbing
Declare a&,x&,y&,text$,z&
Def GetWindowLong(2) !"USER32","GetWindowLongA"
Def GetWindow(2) !"USER32","GetWindow"
Cls
z&=0
a&=0
x&=%hwnd

While x&

    x&=GetWindow(x&,z&)
    z&=2

    If x&

        y&=GetWindowLong(x&,-6)

        If y&

            text$=GetText$(x&)

            If text$<>""

                AddString "Handle= "+Str$(x&)
                AddString "HInstance= "+Str$(y&)
                AddString "Name= "+Chr$(34)+text$+Chr$(34)
                AddString " "
                a&=a&+1

            EndIf

        EndIf

    EndIf

Wend

text$=Str$(a&)+" Gefundene Fenster:"
@ListBox$(text$,1)
WaitInput
End
 
12/19/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.186 Views

Untitledvor 0 min.
kustg12/18/19
AndreasS01/06/19
W.L.07/13/17
Klaus Ernst07/25/14
More...

Themeninformationen

this Topic has 1 subscriber:

Frank Abbing (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie