tag:blogger.com,1999:blog-240509832654584711.post7674696906798467070..comments2023-05-10T10:40:30.657-06:00Comments on The Blog of Glen Moyes: Massively Useful Software: AutoHotkeyGlen Moyeshttp://www.blogger.com/profile/02396403114040415608noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-240509832654584711.post-48365500390607227292010-09-18T16:08:06.952-06:002010-09-18T16:08:06.952-06:00Hi Rife,
I'm also trying to do this script.
M...Hi Rife, <br />I'm also trying to do this script.<br />My code is:<br />SetKeyDelay, 100<br /><br />WinActivate, Unreal Tournament 2004,<br /><br />z::<br /><br />Send, {Up} {Up down}<br /><br />==<br /><br />I could not make dodging script sending UP twice . UT program understand like jump, I don't know why.<br />and you, could you get this ?igornoreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-50237899535016641802010-03-15T10:20:00.063-06:002010-03-15T10:20:00.063-06:00Your blog entry inspired me to overcome my dislike...Your blog entry inspired me to overcome my dislike of having to put quotation marks in after I have typed the words that need to go in quotes. I got sick and tired of having to get the cursor exactly where I needed it and then hitting shift-prime and then going to the right end of a word or phrase and hitting shift-prime.<br /><br />It is a lot easier to just drag the mouse over all words (especially if one starts with a double click so that it selects in word-long strings at a time and then hit ctrl-prime. Also if I am in a search box sometimes one has to put the words in quotation marks - but you only realize you need it after you get whole bunch of spurious results. In that case, you simply put the cursor anywhere in the box and select all with ctrl-a<br /><br />Here is my sc<a rel="nofollow">autohotkey script</a>. It is a simply modification ow what you taught me. For documents it is good to have the proper inverted commas. For search engines and the like it does not matter if one has double primes or quotation marks.<br /><br />;quotation marks around selection<br />^'::<br />Send, ^x<br />; Left Double Quote - Alt 0147<br />Send, {ALTDOWN}{Numpad0}{Numpad1}{Numpad4}{Numpad7}{ALTUP}^v{ALTDOWN}{Numpad0}{Numpad1}{Numpad4}{Numpad8}{ALTUP}<br />returnAnonymoushttps://www.blogger.com/profile/14507910657402752532noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-45592724285021813772009-07-26T15:08:04.496-06:002009-07-26T15:08:04.496-06:00Hi Glen,
Sorry to bother you..
I know google is...Hi Glen, <br /><br />Sorry to bother you..<br /><br />I know google is my best friend xD But not today as i cant find what i have been looking for untill i stumbled across this blog <3<br /><br />Anyway i am looking to put a mouse scroll delay on my WheelUp, WheelDown of 137 milliseconds<br /><br />so that when i am playing oldskool FPS games i dont over scroll my weapons ^^<br /><br />This is what i have so far, please tell me were i am going wrong :)<br /><br />----------------------------------<br /><br />SetKeyDelay, 137<br />WheelUp::Send, {WheelUp}<br /><br />SetKeyDelay, 137<br />WheelDown::Send, {WheelDown}<br /><br />----------------------------------<br /><br />Thanks in advanceUnknownhttps://www.blogger.com/profile/07217487135570527171noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-44160117433955169302008-06-11T14:04:00.000-06:002008-06-11T14:04:00.000-06:00The DirectInput thing makes sense. I've played som...The DirectInput thing makes sense. I've played some games that disable OS shortcuts like the Windows key, Alt-Tab, and so on, so I can see how that would cause problems with AutoHotkey. It sounds like it's checking for scan codes from the keyboard directly for game input (similar to what you have to do for checking gamepad input). So that would explain it as well, and that sounds pretty hard to fake.<BR/><BR/>Trying what the FAQ suggested might work. I noticed you joined the AutoHotkey forums, and they'll be able to be of more help than I would. :)<BR/><BR/>If you find something that works, please let me know because I'll probably run into that same problem in the future.Glen Moyeshttps://www.blogger.com/profile/02396403114040415608noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-12189772218536116502008-06-11T12:32:00.000-06:002008-06-11T12:32:00.000-06:00It's me again :)What do you think about this?http...It's me again :)<BR/><BR/>What do you think about this?<BR/><BR/>http://www.autohotkey.com/docs/FAQ.htm#gamesRifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-73979518129313946662008-06-11T12:27:00.000-06:002008-06-11T12:27:00.000-06:00Hi.Here I'm again.Things are quite entangled here....Hi.<BR/>Here I'm again.<BR/>Things are quite entangled here.<BR/>Now I tried with this simple script:<BR/><BR/>o::Send, {Left}<BR/>i::Send, {a}<BR/><BR/>No double key strokes this time, no dodging, just to make it to move leftwards. (I tried without the curly brackets, as well).<BR/><BR/>In notepad or any other app it works fine, but not in games. I tried it three different games...<BR/>You gave me the clue, my keyboard might be to blame. My keyboard is no that media type. There are two extra buttons on it, a volume up and down key, it has QWERTY layout, and USB connected. I've brought home another keyboard with PS/2 connection, everything goes the same way. As I said before the jump is executed but the moving in four directions are not! Moreover, using the script shown above, in UT if a chat is sarted, when I type my text, and I press the key 'o' the cursor moves to left, respectively instead of 'i' an 'a' is put. That means it is recognised, AHK works in the background.<BR/><BR/>So, I'm realy confused now, I have no idea what's wrong...<BR/><BR/>Anyway, thank you very much for your patience, you did your best to help me.<BR/><BR/>Best Regards:<BR/>Rife FoxRifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-63912654945801060692008-06-10T11:33:00.000-06:002008-06-10T11:33:00.000-06:00Oh, and are you using a non-QWERTY layout?Oh, and are you using a non-QWERTY layout?Glen Moyeshttps://www.blogger.com/profile/02396403114040415608noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-59382816891754471132008-06-10T11:21:00.000-06:002008-06-10T11:21:00.000-06:00Have you tried the macro in a program other than U...Have you tried the macro in a program other than UT? It's possible that you are using a keyboard driver that runs at too low a level for AutoHotkey to pick up. This is especially true for media keyboards that have a lot of buttons on it.<BR/><BR/>Other then that I can't think of what else to suggest. I don't have UT2004 installed on this machine so I can't tell if AutoHotkey will work on it or not.Glen Moyeshttps://www.blogger.com/profile/02396403114040415608noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-66167930919483594082008-06-10T11:12:00.000-06:002008-06-10T11:12:00.000-06:00It's strange...The direction keys defined in AHK a...It's strange...<BR/>The direction keys defined in AHK are ignorred in UT. Doesn't matter if I define the arrow keys or the WASD.<BR/>In this script<BR/>o::Send, {Left}{Left}{RCtrl}<BR/><BR/>or<BR/><BR/>o::Send, {a}{a}{RCtrl}<BR/> only the RightControk is executed (Jump). When the "o" is pressed in the game only a jump is made.Rifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-76494831484040127602008-06-10T09:18:00.000-06:002008-06-10T09:18:00.000-06:00Hmm, it may be playing back the keys too fast for ...Hmm, it may be playing back the keys too fast for UT to recognize. You can try this:<BR/><BR/>SetKeyDelay, 100<BR/>o::Send, {Left}{Left}<BR/><BR/>The SetKeyDelay is in milliseconds, so 100 is a 10th of a second. Still fast, but slow enough for UT to recognize.<BR/><BR/>If that still doesn't work you can try doing key up and key downs, just to make sure that UT is recognizing that a key was pressed.<BR/><BR/>It's possible that instead of queuing up all the input like a word processor does, the game just looks to see what key is being held down. The macro could be playing back so fast that it's slipping in between the frames that the game checks for input, so explicitly saying how long a key is held down may be necessary.Glen Moyeshttps://www.blogger.com/profile/02396403114040415608noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-33806374728079558632008-06-10T07:53:00.000-06:002008-06-10T07:53:00.000-06:00With this script o::Send, {a down}{a up}it moves t...With this script <BR/><BR/>o::Send, {a down}{a up}<BR/><BR/>it moves to left ("a" is assigned to sarfe left), curiously it jumps, almost like a dodging, but it's not good. Ehen I press the "o" I havr to keep it pressed for about half a second to begin to move to the left.<BR/>I'm so desperate, I'm sure with AHK is possible to make this macro to work, but it's so complicated.<BR/>I've found a macro recorder for AHK, but is doesn't work either.Rifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-61649807918745753862008-06-10T02:16:00.000-06:002008-06-10T02:16:00.000-06:00Hi.Unfortunately not, I don't use WASD, I use the ...Hi.<BR/>Unfortunately not, I don't use WASD, I use the arrow keys...<BR/>Moreover, with this script<BR/><BR/>o::Send, {Left 2}{RCtrl}<BR/>or<BR/>o::Send, {Left}{Left}{RCtrl}<BR/><BR/>my character only jumps (that's the Right Control), the two left keypresses are ignored.Rifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-80977957643243732052008-06-09T12:54:00.000-06:002008-06-09T12:54:00.000-06:00Oh, I know what's going on. I bet you have WASD as...Oh, I know what's going on. I bet you have WASD assigned to movement instead of the arrow keys. Either of the following should work:<BR/><BR/>o::Send, {a}{a}<BR/>o::Send, aaGlen Moyeshttps://www.blogger.com/profile/02396403114040415608noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-39272251124476805002008-06-09T12:32:00.000-06:002008-06-09T12:32:00.000-06:00Hi.Thanks for your patience...o::Send, {Left}{Left...Hi.<BR/>Thanks for your patience...<BR/><BR/>o::Send, {Left}{Left}<BR/><BR/>It has no effect at all, as if would be defined nothing to key "o".Rifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-11020259506401803542008-06-09T10:06:00.000-06:002008-06-09T10:06:00.000-06:00Put curly brackets around it like this:o::Send, {L...Put curly brackets around it like this:<BR/><BR/>o::Send, {Left}{Left}<BR/><BR/>That should do the trick.Glen Moyeshttps://www.blogger.com/profile/02396403114040415608noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-43895869715424005022008-06-09T03:41:00.000-06:002008-06-09T03:41:00.000-06:00That's very good news.Will you be so kind and tell...That's very good news.<BR/>Will you be so kind and tell me how to do that script? This AHK is all greek to me. I made something like this:<BR/><BR/>o::Send, LeftLeft<BR/><BR/>or<BR/><BR/>o::SendPlay, LeftLeft<BR/><BR/>but they don't work... Quite surprisingly when I press "o" within the game it starts the TeamChat and in the chat line the string LeftLeft is put.<BR/><BR/>Help me please.<BR/>THANK YOU VERY MUCH!Rifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-25937178452579866602008-06-09T02:38:00.000-06:002008-06-09T02:38:00.000-06:00Yeah, AutoHotkey works with every application that...Yeah, AutoHotkey works with every application that I've used it in, including games. It basically sends a bunch of key presses to the OS very quickly, and it isn't instantaneous, so things like dodging and adrenaline combos will work just fine. I'll just assume that it's standard keyboard input. You can set the delay between key strokes if UT won't recognize it because the keystrokes are too fast.<BR/><BR/>All of that stuff is done client side and the server won't know how you are doing it. The only time the server might care is if you are spamming messages with macros.Glen Moyeshttps://www.blogger.com/profile/02396403114040415608noreply@blogger.comtag:blogger.com,1999:blog-240509832654584711.post-39782188261893638812008-06-09T02:26:00.000-06:002008-06-09T02:26:00.000-06:00Hi Glen.My name is Rife, I can see that you are a ...Hi Glen.<BR/>My name is Rife, <BR/>I can see that you are a guru of AutohotKey and a fan of UT 2004. I'm addicted to UT 2004 too, I have a question. Is it possible to make a macro to use within the UT? I mean I'd like to assign to a key a combination of two or three keys, namely the dodging. I play online UT2004, will the server allow the AHK script?<BR/>Thank you very muck.<BR/>Regards: RifeRifehttps://www.blogger.com/profile/03261315782869438773noreply@blogger.com