Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

macro for farm


  • Please log in to reply
7 replies to this topic
apeiron93
  • Members
  • 7 posts
  • Last active: Dec 11 2015 10:45 AM
  • Joined: 12 Feb 2013

hi guys

i need a macro for rebirthro(ragnarok)

i want a macro to farm that use automatically teleport

i wanna automatic click of a key every 4 seconds and a key to disable macro.

can u send me a script?

 

 



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

I think you can figure this out using Hotkeys, SetTimer, Send, KeyList. And return.

 

Then you have two choices for ending it: Either using SetTimer, label, Off or using ExitApp.

 

The way to use the first one would more easily be shown using If/else, and the ! (logical-not) operator

a:: ; just pressing a activates or deactivates the timer
toggle:=!toggle; this changes the variables value between 1 and 0
If toggle ; AHK evaluates the variable's value. It is considered TRUE if it is 1
SetTimer, label, 4000
else ; the variable toggle must be FALSE (0)
SetTimer, label, off
return

I'll leave the part where you make the label up to you.



apeiron93
  • Members
  • 7 posts
  • Last active: Dec 11 2015 10:45 AM
  • Joined: 12 Feb 2013

i cant make it. i'm italian and i cant understand all about this macro(i dont understand english very well)

can u make it for me?



apeiron93
  • Members
  • 7 posts
  • Last active: Dec 11 2015 10:45 AM
  • Joined: 12 Feb 2013

i made this but i dont know if its good

 

$s::   ;
Loop
{
    Send, {s}       
    Sleep, 5000
   if GetKeyState("p", "P")  ;press the end command to stop
        break
}
return
 



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

Using your approach looks OK. Do note you have to be holding "p" at the time that it would try to Send "s" to make it end.



apeiron93
  • Members
  • 7 posts
  • Last active: Dec 11 2015 10:45 AM
  • Joined: 12 Feb 2013

can u make a script where can i end it?



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

One way to do it without waiting is to use p to set a variable.

 

p::my_Break:=1 ; "true"
 
$s::
my_Break:=0 ; "false"
Loop
{
    Send, {s}       
    Sleep, 5000
   if my_Break ; evaluates if my_Break holds a "true" value
        break
}
return


apeiron93
  • Members
  • 7 posts
  • Last active: Dec 11 2015 10:45 AM
  • Joined: 12 Feb 2013
I use this to spam skill:
$g::
loop, 10
{
send, {g}
sleep, 0
MouseClick, Left
}
return

$f::
loop, 10
{
send, {f}
sleep, 0
MouseClick, Left
}
return

$a::
loop, 10
{
send, {a}
sleep, 0
MouseClick, Left
}
return

$h::
loop, 10
{
send, {h}
sleep, 0
MouseClick, Left
}
return
how can i break spam when i let go the keys?

how can i stop autohotkeys without close it?
i prefer to use caps to stop it