-
-
Save AmJustS/d1eff6b0f78a48d99868c224e5dbbaaf to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
#SingleInstance Force | |
#Include ShinsImageScanClass.ahk | |
Scan := new ShinsImageScanClass | |
Pause | |
F2:: | |
Pause | |
Toggle := !Toggle | |
if (Toggle) | |
{ | |
SetTimer, PressE, 100 | |
} else | |
{ | |
SetTimer, PressE, Off | |
SetTimer, Scan, Off | |
} | |
return | |
PressE: | |
SetTimer, PressE, Off | |
Sleep, 2000 | |
Send, {e Down} | |
Sleep, 2500 | |
Send, {e Up} | |
SetTimer, Scan, 30 | |
return | |
Scan: | |
If (scan.PixelCountregion(16777215,894,738,10,15) > 5) | |
{ | |
SendInput, e | |
SetTimer, Scan, Off | |
Count += 1 | |
; Anti AFK measures | |
If Count = 20 | |
{ | |
Sleep, 5000 | |
SendInput, {a Down} | |
Sleep, 200 | |
SendInput, {a Up} | |
Sleep, 200 | |
SendInput, {d Down} | |
Sleep, 200 | |
SendInput, {d Up} | |
Sleep, 200 | |
SendInput, {LButton} | |
Count = 0 | |
} | |
SetTimer, PressE, 100 | |
} | |
Return | |
F4:: | |
;ExitApp |
1440p, changed it to 1080p and same issue. If I pause and unpause again it casts and doesn't catch.
able to start but it doesn't perfect catch what if i wanna change the resolution which part need to change?
If you want to change resolution you'll need to change scan.PixelCountregion(16777215,894,738,10,15), specifically the 894,738 to the pixels of the E button when the perfect catch prompt shows up.
able to start but it doesn't perfect catch what if i wanna change the resolution which part need to change?
If it doesn't perfect catch, you can change line 29 to be something less than 30. Keep in mind this will need more performance from your PC
Does it work on nessus ?
Does it work on nessus ?
No reason it wouldn't
This require v1.1, after installed v1.1, it's require v2+(I installed both). This script don't want me run it
yeah i'm having the same issue and they haven't replied yet
It works superb, good job!!!
PS: To help figure if you are capturing the right zone of the screen (the "(E)" in "(E) Perfect Catch"), this function can be appended to the end of the script.
Cast manually ur fishing rod and when "(E) Perfect Catch" appears, press F6. It will create an image called DestinyFishingTest.png in "C:"
Replace the "10, 15" in the function below to something like "150, 150" to get a bigger captured image.
F6::
Path:= "C:\DestinyFishingTest"
Scan.SaveImage(Path,894,738,10,15)
return
It works so well that I adapted it to use it in a small window + virtual control so you can use your PC while you fish:
https://gist.github.com/Sniffx/da7b3eb0e13211eb15a9114c89674ebe
It works so well that I adapted it to use it in a small window + virtual control so you can use your PC while you fish: https://gist.github.com/Sniffx/da7b3eb0e13211eb15a9114c89674ebe
Thank you :D, your code looks good
What resolution is your monitor? Change it to 1920×1080 in settings if it isn't. Much easier than finding the correct pixels to check for each resolution