I'm well aware of bias, even my own, hard to live without it, but there it is!
Where's that "I'm not worthy" emoji? 😕
Ok I will do that, one last thing, I managed to get a message box to alert the user of a running instance, but would like to add a second line but it just gives errors with everything I try, yet I've adjusted other parts in a similar fashion, can't see what's wrong!!!
Here's what I've done:
SingleInstanceForce() ; place as the 1st function you call
Func SingleInstanceForce()
Local $instance = "[TITLE:" & @ScriptFullPath & ";CLASS:AutoIt v3;]"
If WinExists($instance) Then
MsgBox($MB_ICONERROR, "StartupMonitor64", "The application is already running" & @CRLF & @CRLF "Click OK to close...")
Exit 4
EndIf
AutoItWinSetTitle(@ScriptFullPath)
EndFunc
What am I missing?
EDIT: I was missing the & before the second set of quotes! Works now...