sheep455_is_the_best Posted September 26, 2008 Share Posted September 26, 2008 Hello. I am looking for a program that can tap a key, while I am only pressing it down. Simple request, simple answer? (I hope : ) Thanks in advance. [Whip drops: 13] Link to comment Share on other sites More sharing options...
JoeDaStudd Posted September 26, 2008 Share Posted September 26, 2008 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 x11Berserker Ring x9Warrior Ring x8SeercullDragon MedDragon Boots x4 - all less then 30 kcGodsword Shard (bandos)Granite Maul x 3Solo only - doesn't include barrows[/hide][hide=Stats][/hide] Link to comment Share on other sites More sharing options...
dsavi Posted September 26, 2008 Share Posted September 26, 2008 Note if your planning on using this for RuneScape do not as it breaks Rule 7. Precisely. But programs like these have several other uses and hopefully you're using them for one of those. Link to comment Share on other sites More sharing options...
sheep455_is_the_best Posted September 26, 2008 Author Share Posted September 26, 2008 Thanks for the input, I will try it out :D And just for clarity, this is not for RS. In any way. Thanks Edit: Works perfectly! Thanks alot. Now it's time to learn how to make some scripts A lock can be performed here, if anyone wants to. [Whip drops: 13] Link to comment Share on other sites More sharing options...
pryomancer Posted September 26, 2008 Share Posted September 26, 2008 I'll leave it open, this could be useful for someone else. :P Link to comment Share on other sites More sharing options...
dsavi Posted September 26, 2008 Share Posted September 26, 2008 Sheep, off topic question, but did Soa make your signature? I think I see his style in that. Link to comment Share on other sites More sharing options...
urbestfreind Posted September 26, 2008 Share Posted September 26, 2008 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 youngYou 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 More sharing options...
sheep455_is_the_best Posted September 27, 2008 Author Share Posted September 27, 2008 Sheep, off topic question, but did Soa make your signature? I think I see his style in that. Made it myself, but with a tutorial. Maybe Soa used it too? [Whip drops: 13] Link to comment Share on other sites More sharing options...
Weslee_Dean Posted October 1, 2008 Share Posted October 1, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now