SpecialAttack.net https://forum.specialattack.net/ |
|
Scripting! https://forum.specialattack.net/viewtopic.php?t=8231 |
Page 1 of 1 |
Author: | Stop_Sign [ 11 Oct 2010, 22:34 ] |
Post subject: | Scripting! |
Hey so I've been messing with AutoHotKey and its usefulness for minecraft, and I've come up with a few things that could be useful for our server. First, go to http://www.autohotkey.com/download/ to DL it if you don't have it already. Its a non-obtrusive program that you can turn off any time. After you install it, there should be a green box in the bottom right hand of the screen. Right click it and click edit, then paste all or some of this: ^v::Send t/paste{Return} ; press ctrl-v to paste ^z::Send t/undo{Return} ; press ctrl-z to undo ^c::Send t/copy{Return} ; press ctrl-c to copy ^x::Send t/cut{Return} ; press ctrl-x to cut ^b::Send t/measure{Return} ; press ctrl-b to measure ^f::Send t/c{Return} ; press ctrl-f to do a cuboid ^g::Send t/mark{Return} ; press ctrl-g to mark ^t::Send t/c air{Return} ; press ctrl-t to make a cuboid of air ^p:: SendInput t/patrol{Return} Sleep 300 SendInput {Shift down} SendInput {q down} Sleep 500 SendInput {q up} SendInput {Shift up} MouseMove <X>, <Y+400>, 5 return To use that last one, it takes a bit of preparation. Right click on the green box again, open window spy, go to your minecraft and control your guy. in the window spy, itll tell you a mouse position (In Active Window: X, Y). Replace the <X> and <Y> with those numbers (Y add 400). For example, I see In Active Window: 511, 338, so I'd type MouseMove 511, 700, 5 in that line. Now you have a command that patrols, flies up and then looks straight down. On a related note, the ';' key is just for comments. Enjoy! |
Author: | Hafnium [ 12 Oct 2010, 00:57 ] |
Post subject: | Re: Scripting! |
+100 Internets. This is really helpful. |
Author: | [SpA]JuncoPartner [ 12 Oct 2010, 03:02 ] |
Post subject: | Re: Scripting! |
I'll deffinetly have to give this a go, are the hotkeys customisable? |
Author: | Astelyn [ 12 Oct 2010, 03:45 ] |
Post subject: | Re: Scripting! |
Quote: I'll deffinetly have to give this a go, are the hotkeys customisable?
Why yes, they are!Quote: ^v::Send t/paste{Return} ; press ctrl-v to paste
See where it says...."^z::"? This defines the hotkey being used. "^" means it is using the Control-key modifier. You can use "!" for Alt, and "+" for Shift. "z" is the key being pressed. If you do not want it to use any modifier, you should begin the line with "#".^z::Send t/undo{Return} ; press ctrl-z to undo ^c::Send t/copy{Return} ; press ctrl-c to copy ^x::Send t/cut{Return} ; press ctrl-x to cut ^b::Send t/measure{Return} ; press ctrl-b to measure ^f::Send t/c{Return} ; press ctrl-f to do a cuboid ^g::Send t/mark{Return} ; press ctrl-g to mark ^t::Send t/c air{Return} ; press ctrl-t to make a cuboid of air So, say I wanted to make it Alt+C to make a cuboid....I would change it to this: !c::Send t/c{Return} ; press ctrl-f to do a cuboid Or, if I wanted it to just be the "c" key: #c::Send t/c{Return} ; press ctrl-f to do a cuboid Hope that answers your question ![]() |
Author: | SomethingAmazing [ 12 Oct 2010, 05:05 ] |
Post subject: | Re: Scripting! |
![]() ![]() ![]() ![]() ![]() |
Author: | Xesdra [ 12 Oct 2010, 07:14 ] |
Post subject: | Re: Scripting! |
Hooray for keyboard with Macros! |
Author: | annarack [ 12 Oct 2010, 10:48 ] |
Post subject: | Re: Scripting! |
Xesdra wrote: Hooray for keyboard with Macros!
![]() |
Author: | Kirshi [ 13 Oct 2010, 00:07 ] |
Post subject: | Re: Scripting! |
This is fantastic stop! ![]() I can't wait to get using this. xD Though I am already used to typing it out... Oh well! A new thing to get used to. ![]() <3Macros<3 |
Author: | Fumino [ 15 Oct 2010, 00:02 ] |
Post subject: | Re: Scripting! |
Any idea what the chat input would be? What I am trying to do is have it simply capture everything being said in the game, and copy it into a .txt file. This could easily be done with IRC, but I am wanting it to capture the things you don't see in IRC chat. I am quite a noob to ahk. I'll continue googling and trying to figure this out, unless someone here figures it out before me, which I hope someone does. I tried doing this with pixelsearch but that turned into a big mess. |
Author: | FillerB [ 15 Oct 2010, 00:10 ] |
Post subject: | Re: Scripting! |
I somehow doubt you can capture text said ingame with AHK since all it does is repeat keystrokes. If you also dont want to use IRC you probably need to look at the packets you receive from the server (like HBOT does if im not mistaken). Which really isnt something a, as you call yourself, noob should do. |
Author: | Kirshi [ 15 Oct 2010, 00:54 ] |
Post subject: | Re: Scripting! |
Fumino wrote: Any idea what the chat input would be? What I am trying to do is have it simply capture everything being said in the game, and copy it into a .txt file. This could easily be done with IRC, but I am wanting it to capture the things you don't see in IRC chat. I am quite a noob to ahk. I'll continue googling and trying to figure this out, unless someone here figures it out before me, which I hope someone does. I tried doing this with pixelsearch but that turned into a big mess.
Why do you want the chat logs? ![]() |
Author: | Fumino [ 15 Oct 2010, 03:01 ] |
Post subject: | Re: Scripting! |
Just a habit, like when I play my MUD (multi-user-dungeon) games, it keeps a log of everything, and it's just nice to look at those logs years later and see a little bit into the past. A good example of this is here: http://forums.tfcmud.com/showthread.php ... 1995-12-16 So if this server is here years from now, and I post a /players list from way back then. People could reminisce about the good old days. |
Author: | Kirshi [ 15 Oct 2010, 04:58 ] |
Post subject: | Re: Scripting! |
Fumino wrote: Just a habit, like when I play my MUD (multi-user-dungeon) games, it keeps a log of everything, and it's just nice to look at those logs years later and see a little bit into the past. A good example of this is here: http://forums.tfcmud.com/showthread.php ... 1995-12-16
Hehe well we have all the chat logs on FTP. ^^ When you move up you'll have access to them. =)
So if this server is here years from now, and I post a /players list from way back then. People could reminisce about the good old days. |
Page 1 of 1 | All times are UTC+02:00 |
Powered by phpBB® Forum Software © phpBB Limited |