| |

VerySource

 Forgot password?
 Register
Search
View: 805|Reply: 3

How do I monitor the entire system and capture active window switching events?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-17 10:20:02
| Show all posts |Read mode
Want to achieve the following functions:

The system runs as a background process and monitors the operating system. When the active window is switched (for example, from word to ie), a new thread is triggered to handle the corresponding transaction.

Excuse me, what is the best way to achieve this? Can I list key functions? It is best to explain why this is better than other methods!
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 United States

Post time: 2020-1-28 00:00:02
| Show all posts
I only know how to use system fishing
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-28 21:18:02
| Show all posts
I only know how to do this, and I am studying hard. Is there any other way? Isn't it that hooks take up more resources?
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-7-17 23:30:01
| Show all posts
It is not possible to implement global hooks in the Microsoft .NET framework. To install a global hook, the hook must have a native dynamic link library (DLL) exported in order to insert itself into another process that needs to call into a valid and consistent function. This requires a DLL export, and the .NET framework does not support this. Managed code does not have the concept of function pointers having uniform values, because these functions are dynamically constructed proxies.

How to learn to see this for a long time! ! !
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list