Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hotkeys:
- F1 to fish forever. F2 to fish once. ESC to quit.
- How to use:
- 1. Download or copy the script onto a notepad file
- 2. Download AutoHotKey from their website, fittingly named https://www.autohotkey.com/
- 3. Rename the text file from .txt to .ahk
- 4. Launch DMM or whatever emulator you use, the go up to some fishies
- 5. Double click on the .ahk file to launch the script, and press F1 to fish forever. ESC to quit.
- 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.
- How to edit:
- 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)
- 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)
- 3. Find and edit the fbtn and xbtn values to what you need.
- //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.
- 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.
- 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
- 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
- ~~~Script~~~
- #NoEnv
- #SingleInstance Force
- #IfWinActive Alchemy Stars
- ; ESC to force quit app
- Esc::
- ExitApp
- return
- ; F1 for repeat fish mode
- F1::
- Loop {
- Gosub, F2
- }
- return
- ; F2 for 1 time test
- F2::
- ;Button positions. Edit if needed.
- ;MuMu 1080p values-- xbtn := {x:1300, y:925} - fbtn := {x:1650, y:650}
- xbtn := {x:1300, y:925} ; Location of X button. MUST BE ON THE WHITE OF THE X!!
- fbtn := {x:1650, y:650} ; Location of fishing button. Anywhere is fine.
- ;throw line. Wait until X button appears.
- MouseMove, fbtn.x, fbtn.y
- Click, Down
- Sleep, 1000
- Click, Up
- Loop {
- PixelSearch, px, py, xbtn.x, xbtn.y, xbtn.x+1, xbtn.y+1, 0xFFFFFF, fast
- } until ErrorLevel = 0
- ;catch fish. tap until X button disappears.
- MouseMove, fbtn.x, fbtn.y
- Loop {
- PixelSearch, px, py, xbtn.x, xbtn.y, xbtn.x+1, xbtn.y+1, 0xFFFFFF, fast
- Click, Down
- Sleep, 400
- Click, Up
- Sleep, 150
- } until ErrorLevel = 1
- ;close caught fish screen
- MouseMove, xbtn.x, xbtn.y
- Sleep, 3000
- Click
- Sleep, 3000
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement