Trying to create a script that will add a new tab to firefox if it's open. And if it's not open to simply run a new instance.
This is what I have so far
It's creating my new tabs, in the first three lines. And it's running firefox in the last part. For some reason (I could just be tired) can't get them to work together.
I feel like I should apologise for being a noob, I've done a lot of scripts with autoit (yep! working ones too) but it always takes me forever. been working on this one for longer than I'm willing to admit
There's a lot more planned with this script, but I hope not to bother again.
Thanks for at least taking a look here!
This is what I have so far
If ProcessExists("1448") Then WinActivate("[CLASS:MozillaWindowClass]") Send("^t") Exit Else Run("C:\Program Files (x86)\Mozilla Firefox\firefox.exe") EndIf
It's creating my new tabs, in the first three lines. And it's running firefox in the last part. For some reason (I could just be tired) can't get them to work together.
I feel like I should apologise for being a noob, I've done a lot of scripts with autoit (yep! working ones too) but it always takes me forever. been working on this one for longer than I'm willing to admit
![:)](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/smile.png)
Thanks for at least taking a look here!