Advertisement
Guest User

AFK Fish Macro

a guest
May 24th, 2019
907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. ;==================================================================================================
  2.  
  3. #NoEnv
  4.  
  5. SetBatchLines -1
  6. SetTitleMatchMode 2
  7. #SingleInstance Force
  8.  
  9. wintit = Minecraft 1.14
  10.  
  11. ;===================================================================================================
  12. ;Shortcuts
  13. ;===================================================================================================
  14. Hotkey !^f, Fishing ; Pressing ctrl + alt + f will start fishing
  15. Hotkey !^s, Stop ; Pressing ctrl + alt + s will stop it
  16.  
  17. ;===================================================================================================
  18. ;GUI
  19. ;===================================================================================================
  20. Gui, Show, w200 h85, Shortcuts
  21. Gui, Add, Button, x10 y10 w100 gFishing, % "Fishing farm"
  22. Gui, Add, Button, yp+40 w100 gStop, % "Stop"
  23. Gui, Show,, MClick
  24. return
  25.  
  26. ;===================================================================================================
  27. ;===================================================================================================
  28. Fishing:
  29. {
  30. IfWinExist %wintit%
  31.  
  32. BreakLoop = 0
  33. Loop
  34. {
  35. if (BreakLoop = 1)
  36. {
  37. BreakLoop = 0
  38. break
  39. }
  40.  
  41. Sleep 100
  42. ControlClick, , %wintit%, ,Right, , NAD
  43. Sleep 500
  44. ControlClick, , %wintit%, ,Right, , NAU
  45. }
  46. Return
  47. }
  48.  
  49. ;==================================================================================================
  50. Stop:
  51. BreakLoop = 1
  52. return
  53.  
  54. ;===================================================================================================
  55. ESC:
  56. GuiClose:
  57. GuiEscape:
  58. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement