let's say I have program A (a default program in windows) and I have Script B (a python script but I wanna make it executable) How can I execute(automatically) Script B when program A opens or starts,,,
Thank you...
Thank you...
How do I activate my script when another program opens?
|
let's say I have program A (a default program in windows) and I have Script B (a python script but I wanna make it executable) How can I execute(automatically) Script B when program A opens or starts,,,
Thank you...
Write a batch file:
mybatch.bat start my_program.exe start python.exe test.py
Nov-22-2017, 04:50 PM
To elaborate on heiner55's post - a level of indirection (a batch file) would be thes simplest solution. If you really want something more, and are willing to put the effort into it, you can look into things such as this. You might also want to checkout Gray Hat Python or its sequel for other information on how to achieve it. It's basically black magic so you're less likely to find something sufficiently cookie-cutter that it wouldn't be a decent chunk of effort.
Nov-23-2017, 08:29 AM
After reading Gray Hat, you can read Black Hat:
https://www.amazon.com/Black-Hat-Python-...bc?ie=UTF8 |
|