Advertisement
Guest User

feesh

a guest
Oct 2nd, 2022
2,870
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. Hotkeys:
  2. F1 to fish forever. F2 to fish once. ESC to quit.
  3.  
  4. How to use:
  5. 1. Download or copy the script onto a notepad file
  6. 2. Download AutoHotKey from their website, fittingly named https://www.autohotkey.com/
  7. 3. Rename the text file from .txt to .ahk
  8. 4. Launch DMM or whatever emulator you use, the go up to some fishies
  9. 5. Double click on the .ahk file to launch the script, and press F1 to fish forever. ESC to quit.
  10. 6. If it doesn't work then try launching the .ahk as admin with right click. If that still doesn't work then you need to modify the button positions.
  11.  
  12. How to edit:
  13. 1. You will see a small green icon with a white H on your tray, right click it and launch the window spy, this lets you see the position of your cursor in a window (https://i.imgur.com/l2y6z7Q.jpg)
  14. 2. Place your cursor over the position of the fish button and write down the coordinates. Start to fish and repeat for the center of the X button that appears during the minigame. (https://i.imgur.com/7AHnLI3.jpg)
  15. 3. Find and edit the fbtn and xbtn values to what you need.
  16. //For step 2 and 3, note that the program is looking for the solid white pixels on the X button. Make sure the coordinates point to the white parts of the button. Anywhere on the fbtn is fine.
  17. 4. You can change the time in between casts, the strength of the throw, the duration and repetition of the clicks on the commented fields on the script.
  18. 5. Once the modifications to the script are done, save the file and then right click again the H icon on your tray and click 'reload script'. It should now work. F1 makes it run forever and F2 makes it run once which is useful for tuning your settings without having to launch the script every time
  19. AutoHotkey uses ESC as a panic button by default, if it starts doing weird things or refuses to give control of your mouse back press ESC
  20.  
  21. ~~~Script~~~
  22.  
  23. #NoEnv
  24. #SingleInstance Force
  25. #IfWinActive Alchemy Stars
  26.  
  27. ; ESC to force quit app
  28.  
  29. Esc::
  30. ExitApp
  31.  
  32. return
  33.  
  34. ; F1 for repeat fish mode
  35. F1::
  36. Loop {
  37. Gosub, F2
  38. }
  39.  
  40. return
  41.  
  42. ; F2 for 1 time test
  43. F2::
  44. ;Button positions. Edit if needed.
  45. ;MuMu 1080p values-- xbtn := {x:1300, y:925} - fbtn := {x:1650, y:650}
  46.  
  47. xbtn := {x:1300, y:925} ; Location of X button. MUST BE ON THE WHITE OF THE X!!
  48. fbtn := {x:1650, y:650} ; Location of fishing button. Anywhere is fine.
  49.  
  50.  
  51.  
  52.  
  53. ;throw line. Wait until X button appears.
  54. MouseMove, fbtn.x, fbtn.y
  55. Click, Down
  56. Sleep, 1000
  57. Click, Up
  58. Loop {
  59. PixelSearch, px, py, xbtn.x, xbtn.y, xbtn.x+1, xbtn.y+1, 0xFFFFFF, fast
  60. } until ErrorLevel = 0
  61.  
  62. ;catch fish. tap until X button disappears.
  63. MouseMove, fbtn.x, fbtn.y
  64. Loop {
  65. PixelSearch, px, py, xbtn.x, xbtn.y, xbtn.x+1, xbtn.y+1, 0xFFFFFF, fast
  66. Click, Down
  67. Sleep, 400
  68. Click, Up
  69. Sleep, 150
  70. } until ErrorLevel = 1
  71.  
  72. ;close caught fish screen
  73. MouseMove, xbtn.x, xbtn.y
  74. Sleep, 3000
  75. Click
  76. Sleep, 3000
  77.  
  78. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement