How can I prevent a program to open more than one window?
Posted: 14 Jan 2015, 15:37
Hi.
I have two version of Firefox installed on a computer. One is a portable version and the other one is installed normally.
I want to use AHK to only allow one session of Firefox to exist. That is - if I first open the portable version og Firefox, the installed version should close emediately after trying to start. Or vice versa.
Now the big issue that make me wonder if this is impossible to achieve:
Both the portable version and the installed version gives the following information about their process (read from ActiveWindowInfoInclude.ahk):
Any ideas?
Thanks
I have two version of Firefox installed on a computer. One is a portable version and the other one is installed normally.
I want to use AHK to only allow one session of Firefox to exist. That is - if I first open the portable version og Firefox, the installed version should close emediately after trying to start. Or vice versa.
Now the big issue that make me wonder if this is impossible to achieve:
Both the portable version and the installed version gives the following information about their process (read from ActiveWindowInfoInclude.ahk):
As if that isn't enough, Firefox changes it's PID during a session.<web site title> - Mozilla Firefox
ahk_class MozillaWindowClass
ahk_exe firefox.exe
Any ideas?
Thanks