Func _MySingleton($sOccurrenceName, $iFlag = 0) ; Recently noticed _Singleton() never returns false on my laptop ; so I wrote this simple emulator using the old hidden window trick. Local $WTMM = Opt('WinTitleMatchMode', 3), $bReturn = False Local $sObfuscateWinTitle = 'MYSINGLETON:\\' & $sOccurrenceName If Not WinExists($sObfuscateWinTitle) Then $bReturn = GUICreate($sObfuscateWinTitle) ElseIf $iFlag = 0 Then Exit -1 EndIf Opt('WinTitleMatchMode', $WTMM) Return $bReturn EndFunc