| |
|
|
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 |
|
|
| |
|
|
|
| Hello Timo...
Wozu benötigst You whom Focus? Perhaps there a better Solution..,. |
|
|
| |
|
|
|
| Hello Timo...
Have time strain what zusammengeschrieben: CompileMarkSeparationDEF @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? |
|
|
| |
|
|
|
Frank Abbing | Hi,
and times in all Kürze: You can The API GetFocus() use... |
|
|
| |
|
|
|
| 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... |
|
|
| |
|
|
|
Timotheus | Yes, works!!! very the I wished!
Timo |
|
|
| |
|
|
|
| Hello Timo...
over again I: Wozu do you need the lever very - Perhaps GEHTS differently too... |
|
|
| |
|
|
|
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 |
|
|
| |
|
|
|
| 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. |
|
|
| |
|
|
|
| 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. |
|
|
| |
|
|
|
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 |
|
|
| |
|
|
|
| I related Yes really the with the Handles (Focus) etc of Fremdfenstern. With the Keylogging Have I saponaceous overlooking. |
|
|
| |
|
|