Prüfen, ob ein Fenster eine bestimmte MESSAGE erhalten hat

  • Hallo Leute.

    Angenommen ich drücke in einem Fremdprozess einen Button. Darauf hin erhält der Prozess eine spezifische Message.
    Diese habe ich per Spy+++ herausgefunden. Wie überprüfe ich nun in meinem Script, ob der Fremdprozess diese Nachricht wirklich erhalten hat?

    Hier die Parameter:

    Message 801A (Sent)
    WM_USER+31770

    wParam = 00000000
    lParam = 0016D074

    Message 801A (Return)
    WM_USER+31770
    Result = 00000000

    Vielen Dank vorab

  • Sieh dir mal
    _WinAPI_SetWindowsHookEx ( $iHook, $pProc, $hDll [, $iThreadID = 0] )
    und dabei den Parameter
    $WH_CALLWNDPROC - Installs a hook procedure that monitors messages before the
    system sends them to the destination window procedure
    $WH_CALLWNDPROCRET -
    Installs a hook procedure that monitors messages after they have been processed
    by the destination window procedure
    $WH_GETMESSAGE - Installs a hook procedure that monitors messages posted to a
    message queue
    an. Ich hoffe, das ist was du suchtest :)

    MfG Kanashius

    • Offizieller Beitrag

    Hier mal ein Bsp. von mir zum Hooken von Messages. Ist kommentiert und sollte verständlich sein.