Jump to content

Keyboard macro program


sheep455_is_the_best

Recommended Posts

Use a program called AutoIt3

 

Create a script like this

 

HotKeySet("{Esc}", "captureEsc")

Func captureEsc()

   HotKeySet("{Esc}")

For $i = 5 to 1 Step -1

	Send("9")

	sleep(500)

Next

HotKeySet("{Esc}", "captureEsc")

EndFunc



While(true)



WEnd

 

 

 

Replace the {Esc} with the Key you want to bind, replace 9 with the key it is to press and sleep value, 500 with the delay between presses in milliseconds.

 

O and replace the 5 with the amount of times to press the key per press of the Hotkey.

 

 

 

Note if your planning on using this for RuneScape do not as it breaks Rule 7.

[hide=Drops]

  • Dragon Axe x11
    Berserker Ring x9
    Warrior Ring x8
    Seercull
    Dragon Med
    Dragon Boots x4 - all less then 30 kc
    Godsword Shard (bandos)
    Granite Maul x 3

Solo only - doesn't include barrows[/hide][hide=Stats]

joe_da_studd.png[/hide]

Link to comment
Share on other sites

I must thank Joe and sheep. I've been looking for a decent macro program and script for awhile.

 

 

 

And I don't have to worry about breaking any rules. I don't play RS anymore, and the only other game I play is WoW, which already has a macro program built in (but you can only use it in WoW, hence the need for a third party program).

 

 

 

Can you only hit one key at a time though? Or can I set it so I would hit like

(enter)

? (Note that's just an example, as i happened to be working on writing a paragraph for my site.

[hide=Funny Quotes]

So you sucker punched a kid in the back of the head? Good job.
What scares me is that you're like 10 years old.
-.- im not that freaking young
You were a couple years ago.
It's not racist if its true.
Hmm... I wonder how one goes about throwing someone out a window in a mystic fashion :-k

 

The mental image for that is freaking awesome.

[/hide]

- I dont need to "get a life." I'm a gamer - I have LOTS of lives!

Link to comment
Share on other sites

AutoIT? Nice man, autoIt is a cool scripting language. Here's a timer I made to help me be efficient when I cast "String amulet" for lunar magic. It plays a sound and flashes colors after I input the correct time (about 47 seconds in this case to cast it 27 times). It might be of use to other people too. This only plays a sound and flashes, it does not interact with the game itself in any way.

 

 

 

Edit: Once again, this doesn't interact with the game, and does not give any unfair advantage. So please think before posting and saying this is breaking rule 7./Edit

 

 

 

On autoIT, its a very robust language. But I would not recommend trying to have it do anything like macro'ing. It is very dangerous to do so. It is very possible, but JAGEX will probably be able to detect it. Trust me from experience back in 2006 when I tested this theory out :)

 

 

 

See code below: (indentation is all messed up but it should be readable)

 

 

 

#cs

 

 

 

Timer Program

 

 

 

#ce

 

#include

 

#include

 

 

 

GUICreate("Timer", 250, 125) ; will create a dialog box that when displayed is centered

 

Opt("GUICoordMode",1)

 

$buttonTimer = GUICtrlCreateButton ( "Start", 4, 4, 121, 118) ; Start button

 

$time = GUICtrlCreateInput ("8", 125, 4, 100, 20, $ES_NUMBER) ; Input numbers only

 

GUICtrlCreateLabel ("Enter time in", 125, 28) ; static text line 1

 

GUICtrlCreateLabel ("seconds for", 125, 42) ; static text line 2

 

GUICtrlCreateLabel ("alarm, then start.", 125, 56) ; static text line 3

 

GUISetBkColor (0xFFEBCD)

 

GUISetState () ; will draw GUI to screen

 

 

 

; Run the GUI until the dialog is closed

 

While 1

 

$msg = GUIGetMsg()

 

Select

 

Case $msg = $GUI_EVENT_CLOSE

 

ExitLoop

 

Case $msg = $buttonTimer

 

$sleepTime = GUICtrlRead($time)

 

soundPlayFunction($sleepTime)

 

EndSelect

 

Wend

 

 

 

Func soundPlayFunction($sleepTime)

 

$soundDing = _SoundOpen(@WindowsDir & "\Media\ding.wav", "ding")

 

If @error = 2 Then

 

MsgBox(0, "Error", "The sound file does not exist")

 

Exit

 

EndIf

 

$sleepTime = $sleepTime * 1000 ; multiplier to change into seconds from milliseconds

 

Sleep($sleepTime)

 

_SoundPlay($soundDing, 1)

 

_SoundClose($soundDing)

 

For $loop = 1 to 15

 

GUISetBkColor (0xFF7F00)

 

GUISetState ()

 

sleep(50)

 

GUISetBkColor (0xFFEBCD)

 

GUISetState ()

 

sleep(50)

 

Next

 

EndFunc

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.