Fix this script #SingleInstance, Force #MaxThreadsPerHotkey 2 SetTitleMatchMode, 2…
- User
Fix this script #SingleInstance, Force #MaxThreadsPerHotkey 2
SetTitleMatchMode, 2 SetKeyDelay, -1 CoordMode, Mouse, Screen
Global screencenterx := (A_ScreenWidth // 2) Global screencentery := (A_ScreenHeight // 2)
F5:: Goto AFKCTest
F6:: ToolTip, GeForceNow Anti-AFK Enabled, 0, 0 Goto GeForceNowAntiAFK
F7:: Gotto MetalFarm
AFKCTest: AFKCToggle := !AFKCToggle loop { If not AFKCToggle break Sleep 100 ControlClick, x%screencenterx% y%screencentery%, GeForce NOW,,,, D Pos ControlClick, x%screencenterx% y%screencentery%, GeForce NOW,,,, U Pos } return
GeForceNowAntiAFK: Gui, Submit, NoHide SetTimer, GeForceNowAntiAFKLoop, 240000 return
GeForceNowAntiAFKLoop() { WinGetPos, X, Y, Width, Height, GeForce NOW if ErrorLevel = 0 { WinMove, GeForce NOW,, X, Y + 1 Sleep, 333 WinMove, GeForce NOW,, X, Y } }
MetalFarm: MouseMove, -650, 200 Click, Left Click, Left Send, f ; Press "f" Sleep, 100 ; Reduced delay MouseMove, -650, 200 ; Move cursor to search Sleep, 50 ; Reduced delay Click, Left ; Left click Sleep, 100 ; Reduced delay Send, g ; Type "g" Sleep, 50 ; Reduced delay Send, {Enter} ; Press Enter Sleep, 100 ; Reduced delay MouseMove, -500, 193 ; Move cursor to drop Sleep, 50 ; Reduced delay return
- Assistant
Certainly! Below is a revised version of the script with some improvements and bug fixes:
autohotkey