G
G
Govnokodddd2019-09-30 15:37:55
Python
Govnokodddd, 2019-09-30 15:37:55

How to implement some script action when a user opens a certain program?

Here I am. Again a question. How to implement in python when opening any .exe by the user, the execution of an action. For example, print("")?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tsarevfs, 2019-09-30
@Govnokodddd

It's hard to do it directly. This is what antiviruses do, but they must intercept the actions of the operating system, which requires work at the driver level. https://web.archive.org/web/20100127105044/https:/...
If you know what this program is and can write to the registry, then here is a good option: https://superuser.com/a/1201793
Well and the third option is to have the user run a script instead of the target program that will launch the target program.
You can also get a list of processes by timer and run the script when it changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question