@@ -180,6 +180,14 @@ nm_importPatterns()
180180 Loop Files A_WorkingDir "\patterns\*.ahk"
181181 {
182182 file := FileOpen(A_LoopFilePath, "r"), pattern := file.Read(), file.Close()
183+ if RegexMatch(pattern, "im)patterns\[")
184+ MsgBox
185+ (
186+ "Pattern '" A_LoopFileName "' seems to be deprecated!
187+ This means the pattern will NOT work!
188+ Check for an updated version of the pattern
189+ or ask the creator to update it"
190+ ), "Error", 0x40010 " T60"
183191 if !InStr(imported, imported_pattern := '("' (pattern_name := StrReplace(A_LoopFileName, "." A_LoopFileExt)) '")`r`n' pattern '`r`n`r`n')
184192 {
185193 script :=
@@ -256,8 +264,17 @@ nm_importPaths()
256264 (paths[k] := Map()).CaseSense := 0
257265 for v in list
258266 {
259- try
267+ try {
260268 file := FileOpen(A_WorkingDir "\paths\" k "-" v ".ahk", "r"), paths[k][v] := file.Read(), file.Close()
269+ if regexMatch(paths[k][v], "im)paths\[")
270+ MsgBox
271+ (
272+ "Path '" k '-' v "' seems to be deprecated!
273+ This means the macro will NOT work correctly!
274+ Check for an updated version of the path or
275+ restore the default path"
276+ ), "Error", 0x40010 " T60"
277+ }
261278 catch
262279 MsgBox
263280 (
@@ -8010,7 +8027,7 @@ nm_BondCalculatorButton(*)
80108027nm_AutoClickerButton(*)
80118028{
80128029 global
8013- local GuiCtrl
8030+ local GuiCtrl,GuiCtrlDuration, GuiCtrlDelay
80148031 GuiClose(*){
80158032 if (IsSet(AutoClickerGui) && IsObject(AutoClickerGui))
80168033 AutoClickerGui.Destroy(), AutoClickerGui := ""
@@ -8027,11 +8044,11 @@ nm_AutoClickerButton(*)
80278044 (GuiCtrl := AutoClickerGui.Add("UpDown", "vClickCount Range0-9999999 Disabled" ClickMode, ClickCount)).Section := "Settings", GuiCtrl.OnEvent("Change", nm_saveConfig)
80288045 AutoClickerGui.Add("Text", "x133 y21", "times")
80298046 AutoClickerGui.Add("Text", "x10 y41", "Click Interval (ms):")
8030- AutoClickerGui.Add("Edit", "x100 y39 w61 h18 Number Limit5", ClickDelay)
8031- (GuiCtrl := AutoClickerGui.Add("UpDown", "vClickDelay Range0-99999", ClickDelay)).Section := "Settings", GuiCtrl .OnEvent("Change", nm_saveConfig)
8047+ AutoClickerGui.Add("Edit", "x100 y39 w61 h18 Number Limit5", ClickDelay).OnEvent("Change", (*) => nm_saveConfig(GuiCtrlDelay))
8048+ (GuiCtrlDelay := AutoClickerGui.Add("UpDown", "vClickDelay Range0-99999", ClickDelay)).Section := "Settings", GuiCtrlDelay .OnEvent("Change", nm_saveConfig)
80328049 AutoClickerGui.Add("Text", "x10 y61", "Click Duration (ms):")
8033- AutoClickerGui.Add("Edit", "x104 y59 w57 h18 Number Limit4", ClickDuration)
8034- (GuiCtrl := AutoClickerGui.Add("UpDown", "vClickDuration Range0-9999", ClickDuration)).Section := "Settings", GuiCtrl .OnEvent("Change", nm_saveConfig)
8050+ AutoClickerGui.Add("Edit", "x104 y59 w57 h18 Number Limit4", ClickDuration).OnEvent("Change", (*) => nm_saveConfig(GuiCtrlDuration))
8051+ (GuiCtrlDuration := AutoClickerGui.Add("UpDown", "vClickDuration Range0-9999", ClickDuration)).Section := "Settings", GuiCtrlDuration .OnEvent("Change", nm_saveConfig)
80358052 AutoClickerGui.Add("Button", "x45 y88 w80 h20", "Start (" AutoClickerHotkey ")").OnEvent("Click", nm_StartAutoClicker)
80368053 AutoClickerGui.Show("w160 h104")
80378054 nm_StartAutoClicker(*){
@@ -14555,7 +14572,8 @@ nm_GoGather(){
1455514572 nm_setShiftLock(1)
1455614573 }
1455714574 while(((nowUnix()-gatherStart)<(FieldUntilMins*60)) || (PFieldBoosted && (nowUnix()-GatherFieldBoostedStart)<840) || (PFieldBoostExtend && (nowUnix()-GatherFieldBoostedStart)<1800 && (nowUnix()-LastGlitter)<900) || (PFieldGuidExtend && FieldGuidDetected && (nowUnix()-gatherStart)<(FieldUntilMins*60+PFieldGuidExtend*60) && (nowUnix()-GatherFieldBoostedStart)>900 && (nowUnix()-LastGlitter)>900) || (PPopStarExtend && HasPopStar && PopStarActive)){
14558- MouseMove windowX+350, windowY+GetYOffset()+100
14575+ if !fieldPatternShift
14576+ MouseMove windowX+350, windowY+GetYOffset()+100
1455914577 if(!DisableToolUse)
1456014578 Click "Down"
1456114579 nm_gather(FieldPattern, A_Index, FieldPatternSize, FieldPatternReps, FacingFieldCorner)
@@ -15058,7 +15076,14 @@ nm_createWalk(movement, name:="", vars:="") ; this function generates the 'walk'
1505815076 gifted_hasty := ((Mod(base_movespeed*10, 12) = 0) && base_movespeed != 18 && base_movespeed != 24 && base_movespeed != 30) ? 1 : 0
1505915077 base_movespeed /= (gifted_hasty ? 1.2 : 1)
1506015078 '
15061- ) : '(bitmaps := Map()).CaseSense := 0')
15079+ ) :
15080+ (
15081+ '
15082+ (bitmaps := Map()).CaseSense := 0
15083+ pToken := Gdip_Startup()
15084+ Walk(param, *) => HyperSleep(4000/' MoveSpeedNum '*param)
15085+ '
15086+ ))
1506215087
1506315088 . (
1506415089 (
@@ -15074,15 +15099,15 @@ nm_createWalk(movement, name:="", vars:="") ; this function generates the 'walk'
1507415099 nm_Walk(tiles, MoveKey1, MoveKey2:=0)
1507515100 {
1507615101 Send "{" MoveKey1 " down}" (MoveKey2 ? "{" MoveKey2 " down}" : "")
15077- ' (NewWalk ? 'Walk(tiles)' : ('HyperSleep(4000/' MoveSpeedNum '*tiles')) '
15102+ ' (NewWalk ? 'Walk(tiles)' : ('HyperSleep(4000/' MoveSpeedNum '*tiles) ')) '
1507815103 Send "{" MoveKey1 " up}" (MoveKey2 ? "{" MoveKey2 " up}" : "")
1507915104 }
1508015105
1508115106 F13::
1508215107 start(hk?)
1508315108 {
1508415109 Send "{F14 down}"
15085- ' (NewWalk ? movement : RegExReplace(movement, "im)Walk\((?<param>.+?)(?:\,|\)(?=[^()]*(?:\(|$)))(?:.*\))?", "HyperSleep(4000/" MoveSpeedNum "*(${param}))")) '
15110+ ' movement '
1508615111 Send "{F14 up}"
1508715112 }
1508815113
@@ -18581,10 +18606,9 @@ nm_PathVars(){
1858118606 Send "{" SC_Space " down}{" RightKey " down}"
1858218607 Sleep 100
1858318608 Send "{" SC_Space " up}"
18584- Walk(2)
18585- Send "{" FwdKey " down}"
18586- Walk(1.5)
18587- Send "{" FwdKey " up}"
18609+ nm_Walk(2, RightKey)
18610+ nm_Walk(1.5, FwdKey, RightKey)
18611+ Send "{" RightKey " down}"
1858818612
1858918613 DllCall("GetSystemTimeAsFileTime","int64p",&s:=0)
1859018614 n := s, f := s+100000000
0 commit comments