55
66; @Ahk2Exe-SetCompanyName Expertcoderz
77; @Ahk2Exe-SetDescription EC Autoclicker
8- ; @Ahk2Exe-SetVersion 1.1.0
8+ ; @Ahk2Exe-SetVersion 1.1.2
99
1010FILE_EXT := " .ac-profile"
1111REG_KEY_PATH := " HKCU\Software\Expertcoderz\Autoclicker"
@@ -149,9 +149,6 @@ PersistentOptions := [{ ValueName: "AlwaysOnTop",
149149 }
150150 ]
151151
152- OptionsMenu.Add
153- OptionsMenu.Add SZ_TABLE.Menu_Options_ResetToDefault, ResetOptionsToDefault
154-
155152HelpMenu := Menu ()
156153HelpMenu.Add SZ_TABLE.Menu_Help_OnlineHelp
157154 , (* ) => Run (" https://github.com/Expertcoderz/EC-Autoclicker#readme" )
@@ -1027,7 +1024,7 @@ CheckForNewerVersion(isManual) {
10271024 oHttp.send
10281025
10291026 local verNumMatch
1030- if ! RegExMatch (oHttp.responseText, '" tag_name" :" (.*?)" ', & verNumMatch) {
1027+ if ! RegExMatch (oHttp.responseText, '" tag_name" :" v (.*?)" ', & verNumMatch) {
10311028 add_log " Unable to obtain latest release version"
10321029 MsgBox "
10331030 (
@@ -1042,7 +1039,7 @@ Please try again later, or update EC Autoclicker manually if this error reoccurs
10421039 add_log " Current version is up to date with the latest release"
10431040 if isManual
10441041 MsgBox " EC Autoclicker is up to date (" verNumMatch.1 " )." , " Update" , " Iconi 262144"
1045- RegWrite A_NowUTC , " REG_DWORD " , REG_KEY_PATH, " LastUpdateCheck"
1042+ RegWrite A_NowUTC , " REG_SZ " , REG_KEY_PATH, " LastUpdateCheck"
10461043 return
10471044 }
10481045
@@ -1082,13 +1079,15 @@ for optionInfo in PersistentOptions {
10821079 if optionInfo.CurrentSetting
10831080 OptionsMenu.Check optionInfo.Text
10841081}
1082+ OptionsMenu.Add
1083+ OptionsMenu.Add SZ_TABLE.Menu_Options_ResetToDefault, ResetOptionsToDefault
10851084
10861085AutoclickerGui.Show " x0"
10871086add_log " Welcome to EC Autoclicker"
10881087
10891088if A_IsCompiled {
10901089 if A_Args.Length > 0 && A_Args[1 ] = " /updated" {
1091- RegWrite A_NowUTC , " REG_DWORD " , REG_KEY_PATH, " LastUpdateCheck"
1090+ RegWrite A_NowUTC , " REG_SZ " , REG_KEY_PATH, " LastUpdateCheck"
10921091 MsgBox " EC Autoclicker has been updated successfully.`nNew version: " SubStr (FileGetVersion (A_ScriptFullPath ), 1 , - 2 )
10931092 , " Update" , " Iconi 262144"
10941093 } else if RegRead (REG_KEY_PATH, " AutoUpdate" , true ) && A_NowUTC - RegRead (REG_KEY_PATH, " LastUpdateCheck" , 0 ) >= 604800 {
0 commit comments