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% } +}