dbg - debuging routine
dbg("Log this message") Func dbg($msg, $error=@error, $extended=@extended, $ScriptLineNumber=@ScriptLineNumber) Local $out = "(" & $ScriptLineNumber & ")(" & $error & ")(" & $extended & ") := " & $msg ;Output to application attaching a console to the script engine ConsoleWrite($msg & @CRLF) ;Output to debugger (dbgview.exe) DllCall("kernel32.dll", "none", "OutputDebugString", "str", $out) EndFunc