'Python reroute other scripts that automate applications to other\multiple monitors

I am a beginner to programming. I have a few of these python scripts that actually run some applications to my machine. Recently, I have been requested to run these scripts to the other monitors for example if I got 4 monitors, there will be a script that receive a few arguments such as the python scripts that run the requested application and also which monitor that I want it to be run.

I found that there is a way to automate these by using .ahk language. So this is what I have done:

sysget mon1, monitor, 1
sysget mon1, monitor, 2
sysget mon1, monitor, 3
sysget mon1, monitor, 4

if WinExist ("ahk_exe Calculator.exe")
   WinActivate, ahk_exe Calculator.exe
winmove A,, mon2left, mon2top, (mon2right - mon2left), (mon2bottom - mon2top)

return

But the problems are, I am not sure how am I going to integrate this with Python, how this .ahk script will receive variable value of the windows title which I retrieved using python script and also there might be a few arguments value that I would like to pass through.

Is it possible to be done or is there any way that I can do it completely only using Python?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source