From 95bda715cb2bf2d9dd062e37e61d2dd0a281fcc3 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Thu, 4 Jul 2024 00:45:14 -0400 Subject: [PATCH] fixed errorlog to text formatting --- General-Functions.ahk | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/General-Functions.ahk b/General-Functions.ahk index be265b9..944c999 100644 --- a/General-Functions.ahk +++ b/General-Functions.ahk @@ -109,13 +109,9 @@ Func_LogErrorsToTextFile(Text){ ; ErrorLoggingFile := Filepath FormatTime, TodayDate , YYYYMMDDHH24MISS, yyyyMMdd_hhmmss - text = - ( - ---------------%TodayDate%--------------- - %Text% + text =`n`n---------------%TodayDate%---------------`n%Text% - ) FileAppend, %Text%, %ErrorLoggingFilePath% } ; -------------------------------/LogErrorsToTextFile------------------------------- @@ -615,7 +611,7 @@ getAspectRatio(width, height) { ; Used for calculating aspect ratio of Videos gcdFunc(a, b) { while b - t := b, b := Mod(a, b), a := t + t := b, b := Mod(a, b), a := t return a } @@ -635,16 +631,16 @@ if (ConfirmBeforeSubmit && ConfirmBeforeSubmitMsgboxFunc() != true) { return } */ - OnMessage(0x44, "OnMsgBoxUserConfirmation") - MsgBox 0x21, User Confirmation, Please check that all data was input correctly and fix any mistakes and then click PROCEED to finalize the Upload.`n`nClick STOP to cancel the rest of this Upload and move on to the next website. - OnMessage(0x44, "") - IfMsgBox OK, { - return true - } Else IfMsgBox Cancel, { - Message = User Selected STOP button when asked for confirmation. Cancelling Rest of Site Upload. - Return %Message% - } +OnMessage(0x44, "OnMsgBoxUserConfirmation") +MsgBox 0x21, User Confirmation, Please check that all data was input correctly and fix any mistakes and then click PROCEED to finalize the Upload.`n`nClick STOP to cancel the rest of this Upload and move on to the next website. +OnMessage(0x44, "") +IfMsgBox OK, { + return true + } Else IfMsgBox Cancel, { + Message = User Selected STOP button when asked for confirmation. Cancelling Rest of Site Upload. + Return %Message% } +}