Posts

Showing posts from 2019

BNS Fishing AHK

Image
#NoEnv #KeyHistory 0 ListLines Off SetKeyDelay, -1, -1 SetMouseDelay, -1 SetDefaultMouseSpeed, 0 SetWinDelay, -1 #IfWinActive ahk_class LaunchUnrealUWindowsClient F1:: MouseGetPos, mouseX, mouseY PixelGetColor, color, %mouseX%, %mouseY%, RGB StringRight color,color,10 ; tooltip, %mouseX%,%mouseY%颜色是:%color% return XButton1:: send 5 Settimer, PressB, 0 return pressB: if ( GetColor( 1152 , 674 )==" 0xE5D25C " ) ; { send f sleep 10 send f sleep 10 send f sleep 500 send 5 } return ;抓取颜色函数,在上面脚本中调用。 GetColor(x,y) { PixelGetColor, color, x, y, RGB StringRight color,color,10 ; return color } Return EmptyMem(PID="Client or 劍靈 or AHK Rocks"){ pid:=(pid="Client or 劍靈 or AHK Rocks") ? DllCall("GetCurrentProcessId") : pid h:=DllCall("OpenProcess", "UInt", 0x001F0FFF, "Int", 0, "Int", pid) DllCall("SetProcessWorkingSetSize", "UInt", h, "Int"