Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gui,destroy
- Gui, Add, Button, x12 y9 w100 h30 gCookNow, Cook
- Gui, Add, Button, x122 y9 w100 h30 gCoalNow, Coal
- Gui, Add, Button, x72 y49 w100 h30 gReload, Stop
- Gui, Add, Text, x12 y89 w210 h30 , In game press tab and hover mouse over coal spot and press f1 to set click spot
- Gui, Show, x815 y377 h134 w235, Farm
- Return
- GuiClose:
- ExitApp
- ;auto cook food
- CookNow:
- WinActivate, Valheim
- loop{
- send e
- sleep 2000
- }
- ;auto farm coal
- CoalNow:
- WinActivate, Valheim
- count=0
- loop{
- send e
- sleep 15000
- count++
- if count = 2
- {
- send {a down}
- sleep 1000
- send {a up}
- send e
- send {ctrl down}
- mousemove, xpos, ypos
- click
- sleep 250
- send {ctrl up}
- send {esc}
- send {d down}
- sleep 1000
- send {d up}
- count=0
- }
- }
- Return
- f1::
- MouseGetPos, xpos, ypos
- Return
- f2::
- Reload:
- Reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement