[quote=“Lee Rowlett, post: 41495, member: 28”]tried autoit? different ways u cud do it… execute chrome within autoit.exe or have autoit watch in the background if process number over set limit, close last process and could do message prompt… all sorts, limit is endless.
simple approach would be:
#NoTrayIcon
#include <Misc.au3>
#include <MsgBoxConstants.au3>
If _Singleton(“chrome”, 1) = 0 Then
MsgBox(64, “Warning”, “Only one instance is allowed”)
Else
ShellExecute(@ProgramFilesDir & “\Google\Chrome\Application\chrome.exe”)
EndIf
compile that to .exe (even give it a relevant icon if u want even call it chrome etc)
only downside is, u would need to remove all chrome shortcuts and make sure they run this instead. the other option as i say wud to have an .exe run at startup doing the same thing but on trigger events or loop so:
While 1
Do
sleep (500)
Until ProcessExist(“chrome.exe”) = 1
Do stuff, close, msg prompt etc etc etc[/quote]
Thanks I will play with this today!
Hmm It still opens multiple windows of chrome. I can open a crap load of windows still. The script opened chrome though. I’m new to AutoIT but I’m going to be playing with this a bit and hopefully coerce it to my needs