I have 10 Firefox.exe (different Profiles), each one of them with the name:
Firefox_10.exe
Firefox_11.exe
Firefox_12.exe
Firefox_13.exe
Firefox_14.exe
Firefox_15.exe
Firefox_16.exe
Firefox_17.exe
Firefox_18.exe
Firefox_19.exe
Firefox_20.exe
I'm trying to do a script that search If Firefox_10 process exists, if YES, then open next Firefox... in this case Firefox_11 is the next Firefox, but it may happen Firefox_11 is also open, so loop till it finds a Firefox process that is not open and open it. The count starts at Firefox_10 and ends at Firefox_20, I don't want to close any process, just jump it and try to open next Firefox that is not open yet.
** Note: I need to open only one Firefox, the one that is free in numerical order, so if Firefox_10.exe is open and Firefox_13.exe is open, then the script should open Firefox_11.exe only and not Firefox_11.exe, Firefox_12.exe, etc..
I have then:
Code:
$start = 10 While $start <= 20 If Not ProcessExists("Firefox_"&$start&".exe") Then Run("C:\Users\admin\Desktop\OneDrive\SETTINGS\Firefox Stuff\Firefox Light\Mozilla Firefox 31.0\04_Ejecutables\Ejecutables\Firefox_"&$start&".exe") EndIf $start += 1 WEnd
Regards