I am trying to write a script that when clicking "SHIFT+ALT+I" it sends a particular command when Microsft Word is active and another command if Microsoft PowerPoint is Active (both programs are running at the same time).
The code should be something like:
"if Microsoft Word is open"
+!i::
MouseMove, 300,50,0
MouseClick, left
"if Microsoft Powerpoint is open"
+!i::
MouseMove, 600,100,0
MouseClick, left
Is there any (easy) way of doing that?