|
-
Sep 11th, 2001, 09:57 AM
#1
Thread Starter
New Member
Detecting Mouseclick on another application
I am trying to write a test program to detect the windows events, such as mouseclick , text entered in a textfield, a dialogue box opened, etc.
Could I use the default WIN32 API to detect all windows events?
How do I do it?
-
Sep 11th, 2001, 05:30 PM
#2
-
Sep 12th, 2001, 12:36 PM
#3
PowerPoster
You can however obtain the handle to the window or button on the window in another app and then process it accordingly.
For example if you get the handle to the OK button on a form you can then send the appropriate message from VB to click this button and it will be processed accordingly. This will require you to search for the button to obtain the handle.
I find this works well. The only thing I have not found you can do is inject a message between when the window is created and the window is shown in another App during startup of the other App.
If Nucleus or anyone else knows how this can be done using C++
let me know.
-
Sep 12th, 2001, 06:04 PM
#4
Registered User
-
Sep 12th, 2001, 06:49 PM
#5
PowerPoster
Thanks Nucleus.
EMail Megatron for source code but haven't received.
-
Sep 15th, 2001, 10:10 PM
#6
Thread Starter
New Member
Thanks Guys,
I have posted this in another forum and they have recommended a book regarding Hooking in VB. The title is " SubClassing and Hooking in VB" by O'Reilly.
-
Sep 15th, 2001, 10:32 PM
#7
Thread Starter
New Member
I am new to API and hooking, any books that you could recommend?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|