English
Forum

Focus System

 

Timotheus
Hi,

I have a question. is it possible somehow whom Focus System To detect? The on the Profanfenster is Yes possible, but does it on others Windows?

Timo
 
06/12/05  
 



Hello Timo...

Wozu benötigst You whom Focus? Perhaps there a better Solution..,.
 
06/12/05  
 



Hello Timo...

Have time strain what zusammengeschrieben:
CompileMarkSeparation
DEF @AttachThreadInput(3) !"USER32","AttachThreadInput"
DEF @GetWindowThreadProcessId(2) !"USER32","GetWindowThreadProcessId"
DEF @APIGetFocus(0) !"user32","GetFocus"
DEF @GetAsyncKeyState(1) !"user32","GetAsyncKeyState"
Windowstyle 31
Windowtitle "Focus auf Fremdfenster"
Window 0,0-640,80
Declare Merker&,Thread1&,Thread2&,PR_ID1&,PR_ID2&,ControlHandle&
LET THREAD1&=@GetWindowThreadProcessId(%HWND,@ADDR(PR_ID1&))
@GetAsyncKeyState(1) Reset => Mausklick links

While 0=0

    sleep 10

    IF @GetAsyncKeyState(1)<>0 Wenn Mausklick links

        LET THREAD2&=@GetWindowThreadProcessId(@GetactiveWindow(),@ADDR(PR_ID2&)) ID der Befehlsschleife des Programms, das im Vordergrund läuft, ermitteln

        IF THREAD2&<>THREAD1&

            LET MERKER&=@AttachThreadInput(Thread2&,Thread1&,1) Eingabe an eigenes Programm umleiten
            LET ControlHandle&=@APIGetFocus() Jetzt geht GetFocus!

        endif

        IF MERKER&

            @AttachThreadInput(Thread2&,Thread1&,0) Umleitung aufheben

        endif

        Drawtext 0,0,@GETTEXT$(ControlHandle&)+@space$(255)
        Drawtext 0,30,@STR$(ControlHandle&)+"  "+@STR$(@APIGetFocus())+@space$(255)

    endif

wend


over again: what have you got very to? Perhaps Gibts what better?
 
06/12/05  
 




Frank
Abbing
Hi,

and times in all Kürze: You can The API GetFocus() use...
 
06/12/05  
 



Hello Frank...
[quote:899866a8ff=Frank Abbing]Hi,

and times in all Kürze: You can The API GetFocus() use...[/quote:899866a8ff]
Beautiful wärs. from the WIN32.HLP:
The GetFocus function retrieves the lever of the keyboard focus window associated with the thread that called the function.

time ausprobiert, whether the really always works? at that me (windows98) apparently with the API GetFocus on my own not...
 
06/12/05  
 




Timotheus
Yes, works!!!
very the I wished!

Timo
 
06/13/05  
 



Hello Timo...

over again I: Wozu do you need the lever very - Perhaps GEHTS differently too...
 
06/13/05  
 




Timotheus
i think not that it differently goes. i want Namely in a given Window one bestimmtes Fensterobjekt read. Since the window not changes can I the Objeft whom Fokus lay, and sustain the lever. whom can I then as Constant in a variable present, and already can I this Objekt read.
but I had another question. namely to the Inputs with the keyboard. in the API-Library there moreover already something ähnliches. These gives but only on The question response, whether since the last Calling the function a defined Button pressed watts. If I now but the Button self find out would like does it not without further, because GetAsyncKeyState() to the next appeal the squeezed same again deletes, what about me sonach not even The whole Keyboard query could. gives it a Possibility The whom direct worth the squeezed Button zurückgibt?

Timo
 
06/14/05  
 



Hello Timo...

I can already present, what You want .
Frank Abbing has time a very good Keylogger program - with Hook-DLL. Perhaps has it another idea.
 
06/14/05  
 



Hello Timo,
if it you nothing ausmacht a extra DLL einzusetzen, can I you The AutoItX.dll recommend. The allows filled Access to stranger Window, on each Controls. set I gladly one, takes one no crowd on API-Proggerei ex. These Freeware DLL find You under: [...] 
The Doku Although English, but with the DLL-Importer etc. ought to one get by.
 
06/14/05  
 




Timotheus
turn off does me the nothing, but could you me possible whom names the function give? the only I with Keyboardkontrolle found, were command to that prompt in defined Objects.

Timo
 
06/17/05  
 



I related Yes really the with the Handles (Focus) etc of Fremdfenstern. With the Keylogging Have I saponaceous overlooking.
 
06/17/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.674 Views

Untitledvor 0 min.
Ernst03/23/14
funkheld02/27/13
Untitled05/26/12
Stephan Sonneborn03/04/12
More...

Themeninformationen



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