Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Script not exiting where I want. Probly an easy one...

$
0
0
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

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 :)  There's a lot more planned with this script, but I hope not to bother again.

Thanks for at least taking a look here!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>