Forums » View topic » Some AutoHotKey (AHK) scripts

View next topic
View previous topic
Reply to topic
Author Message
SomeNobody
Senior Member


Joined: 26 Jan 2012
Posts: 119/30
Rating: 14

PostPosted: 27 Sep 2012 04:52 PM Reply with quoteBack to top

AutoHotKey is a little tool that lets you program a set of actions and bind them to keys. It makes RO a much more enjoyable experience. Here's some free scripts for you. It's hard to generalize the more interesting scripts since the most interesting things AHK can do need screen coordinates.

AHK comes with an action recorder, so you can build your own scripts with minimal pain once you understand the basics.


Read or be banned

Rob said he's ok with AHK as long as you're only using scripts while you're there to tend to them.

I've written these scripts in a way that shouldn't do anything without you holding a button down. You will be banned if you edit these to do something while you're not at the computer. You've been warned.

Also important
AHK can do pretty much anything. It has no built-in security as far as I can tell. I'll review scripts before putting them in the OP, but you need to be careful about scripts posted in the thread.
------------------------

Install AHK and make sure you tell it to associate .ahk files with AHK. I might have imagined that option. If I did, then it'll do that automatically.

Save these files to the same directory:

launch.ahk
Code:
Run, "buff.ahk", %A_ScriptDir%
Run, "ds.ahk", %A_ScriptDir%
Run, "gj.ahk", %A_ScriptDir%


ds.ahk
Code:
Loop
{
        ;Wait for Left Shift. See the AHK docs for key names
        KeyWait, LShift, D
        Send, {F1} ;Replace with your DS key
        Click
        ;Server-enforced 200ms/.2 second delay
        Sleep, 200

}


gj.ahk
Code:
Loop
{
        ;Wait for Left Control. See the AHK docs for key names
        KeyWait, LCtrl, D
        Send, {F2} ;Replace with your GJ key
        ;Server-enforced 50ms/.05 second delay
        Sleep, 50

}


buff.ahk
Code:
1:: ;Binds to the 1 key. See the AHK docs for key names
Send, {F4} ;Set to your Falcon Eyes key
Sleep, 500
Send, {F6} ;Set to your Improve Concentration key


clickclickclick.ahk
Code:
Loop
{
        KeyWait, LShift, D
        Click
}


You should be able to work out how to modify these scripts to reflect your chosen class. Double click launch.ahk and it'll take care of the rest.

Feel free to post your own scripts in this thread. I'll put the more interesting contributions in the OP.


Last edited by SomeNobody on 11 May 2013 03:40 PM; edited 11 times in total
View user's profileSend private message Journal
Kaz!
Staff Member


Joined: 20 Oct 2004
Posts: ~1,000/20
Rating: N/A
Location: 53 degrees 32 minutes North, 113 degrees 30 minutes West.

PostPosted: 27 Sep 2012 05:12 PM Reply with quoteBack to top

To clarify, though I'm generally fine with people using this, keep in mind:

1) We provide NO support for AHK or AHK-related scripts.
2) If you choose to use this, be advised that this program does make it possible to perform actions completely free of user input (the same way as any repetative-keypress-macro does). If you use it in this way, it is still a supendable action. So only use it if you know what you're doing, and use-at-your-own-risk.

_________________
Gamemaster character: GM Robert
View user's profileSend private message MSN Messenger
SomeNobody
Senior Member


Joined: 26 Jan 2012
Posts: 119/30
Rating: 14

PostPosted: 27 Sep 2012 05:26 PM Reply with quoteBack to top

Kaz! wrote:
To clarify, though I'm generally fine with people using this, keep in mind:

1) We provide NO support for AHK or AHK-related scripts.
2) If you choose to use this, be advised that this program does make it possible to perform actions completely free of user input (the same way as any repetative-keypress-macro does). If you use it in this way, it is still a supendable action. So only use it if you know what you're doing, and use-at-your-own-risk.


So a script that runs through the actions of making potion on an alchemist while holding a key would be ok?


Last edited by SomeNobody on 27 Sep 2012 05:28 PM; edited 3 times in total
View user's profileSend private message Journal
Kaz!
Staff Member


Joined: 20 Oct 2004
Posts: ~1,000/20
Rating: N/A
Location: 53 degrees 32 minutes North, 113 degrees 30 minutes West.

PostPosted: 27 Sep 2012 05:40 PM Reply with quoteBack to top

SomeNobody wrote:
So a script that runs through the actions of making potion on an alchemist while holding a key would be ok?


Again, I don't really care, provided that:
1) Someone using this in this manner is able to respond near-instantly to a bot-check request from anyone staff or otherwise, and
2) Are aware that, unless they are going really slowly, they will likely encounter issues due to slight time delays (especially in the menus) and
3) Some user input is still required. Holding down a key is okay.

_________________
Gamemaster character: GM Robert

Last edited by Kaz! on 27 Sep 2012 05:45 PM; edited 1 time in total
View user's profileSend private message MSN Messenger
savagewildman
Senior Member


Joined: 03 Jun 2009
Posts: 299/61
Rating: 172

PostPosted: 29 Sep 2012 08:51 PM Reply with quoteBack to top

i noticed with your gj spammer, i still spam gjs faster using q2...odd....
View user's profileSend private message Journal
SomeNobody
Senior Member


Joined: 26 Jan 2012
Posts: 119/30
Rating: 14

PostPosted: 30 Sep 2012 05:17 AM Reply with quoteBack to top

savagewildman wrote:
i noticed with your gj spammer, i still spam gjs faster using q2...odd....


I set the script's delay to 50ms because Rob told me 50ms when I asked him for the minimum delay on items. You can always change it if the server lets you use GJ faster.
View user's profileSend private message Journal
savagewildman
Senior Member


Joined: 03 Jun 2009
Posts: 299/61
Rating: 172

PostPosted: 09 Oct 2012 07:32 PM Reply with quoteBack to top

im curious to see how people are using this program (if they are) to make life a little easier on rf.

What have people figured out as far as skill spamming goes, is it better to calculate your aspd on skills like double strafe to get maximum output or just set a good number like 200 ms?

_________________
If you want to get ahold of me, Forum PM is the best way.
View user's profileSend private message Journal
SpaceFalcon
Senior Member


Joined: 22 Nov 2010
Posts: 209/14
Rating: 65
Location: MAYYRIDGE

PostPosted: 09 Oct 2012 07:50 PM Reply with quoteBack to top

DS scripts are the only reason I don't have arthritis.
View user's profileSend private message MSN Messenger
Miester
Senior Member


Joined: 23 Dec 2008
Posts: 55/19
Rating: 31

PostPosted: 09 Oct 2012 11:41 PM Reply with quoteBack to top

SpaceFalcon wrote:
DS scripts are the only reason I don't have arthritis.


LOL

_________________
"If I cannot move heaven I will raise hell." - Aeneid 1:203

Image
View user's profileSend private message 
savagewildman
Senior Member


Joined: 03 Jun 2009
Posts: 299/61
Rating: 172

PostPosted: 10 Oct 2012 06:58 PM Reply with quoteBack to top

Miester wrote:
SpaceFalcon wrote:
DS scripts are the only reason I don't have arthritis.


LOL


Carpel Tunnel is a very serious side effect of playing a sniper... DS script makes playing sniper very chill instead of "AHHHHHH CLICKCLICKCLICKCLICK.... i win."

Lol, its helpful for alot of people, although not necessary for most.

_________________
If you want to get ahold of me, Forum PM is the best way.
View user's profileSend private message Journal
xmkrx
Senior Member


Joined: 01 Jun 2004
Posts: 2,054/38
Rating: 363

PostPosted: 11 May 2013 03:41 PM Reply with quoteBack to top

Made this after a DB party.

clickclickclick.ahk:
Code:
Loop
{
        KeyWait, LShift, D
        Click
}


It makes NPCing diverse loot easier.


Last edited by xmkrx on 11 May 2013 03:47 PM; edited 1 time in total
View user's profileSend private message Journal
adeptnready
Level 6


Joined: 26 May 2014
Posts: 38
Rating: 1
Location: w/ Waldo 'n company

PostPosted: 02 Jun 2014 12:44 PM Reply with quoteBack to top

dam what a good waste of 15mins reading :E

_________________
I am a Sheep, Capricorn. Sagitarius. I just gave away my birthday.

FUN facts
1. you cant clean your eyes with soap
2 You cant count your hairs
3. you cant stick your tongue out and breathe through your nose
4. You just tried number 3
6. When you did no. 3 you realized its possible only you look like a dog
7. your smiling right now because you were fooled
8. you just skipped no. 5
9. you just checked to see if there is a number 5
10. you will probably share.
View user's profileSend private message 
Display posts from previous:      
Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Terms of Service · Privacy Policy · Contact Us
All times are GMT - 8 Hours · Revision 5284:5295
Copyright 2003-2018 Xenophase, a not-for-profit volunteer organisation · Celebrating a 15th year online.