Jump to content

Recommended Posts

Posted (edited)

Hey,

 

I am currently playing arround with WinApi's, at the moment with the SetWindowsHookEx-API.

I like to get a msgbox before a window with the title 'Test' appears.

 

So I need to place a hook for $WH_CALLWNDPROC - Installs a hook procedure that monitors messages before the system sends them to the destination window procedure

?

 

Remeber, I need the msgbox appear before the window is actually created!

I am not sure how to do this...

I looked in the helpfile, and I am thinking how to modify this sample, but not sure how to do this exactly.

 

_WinAPI_SetWindowsHookEx

 

Can someone help me please? ;o

Edited by Melba23
Code removed - Link added

Posted

So you just copied the example and posted it here? What use is that to anyone? 

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

MadaraUchiha,

Posting the exact replica of a Help file example which does nothing like what you are looking to do is not really helpful. Why not just link to the on-line Help file page if you feel it is absolutely essential. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Sorry about that.

But I am not exactly sure how to structure my minds......

1) I need to include WinApi.au3

2) I have 2 functions, one to grab the hook, and another one where i can handle my own code, right? But what is my DllCallbackRegister so i get a msg before the window appears?

  • Moderators
Posted

MadaraUchiha,

Please do not bump your own threads within 24 hrs. You might think it urgent, but no-one else does. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...