User talk:Toraen/Sandbox/ahk

I would call you a lazy bastard if I didn't know how much you use those tags. XD

Also, is there not any indenting for the PR one? -- Jai . -  04:28, May 8 2011 (UTC)
 * Nope, there's no conditional branches that would make it necessary for reading, and AHK doesn't actually care about indenting iirc. --  Toraen   talk  04:35, 8 May 2011 (UTC)
 * I'm taking a Python course atm, and indenting is important (I have a feeling you actually know more about it than me). Also, for the chat script, would you add "~+[x]::" for any key that you wanted to suspend? -- Jai . -  04:42, May 8 2011 (UTC)
 * No. Suspend will just affect all hotkeys that don't have Suspend as their first line. The ~+X are the !, @, #, $, % that are the in-game shortcuts to the specific chat windows (the + prefix is Shift; ~ prefix lets the regular function of the key go uninterrupted by the hotkey). Come to think of it, it's missing the whisper one. --  Toraen   talk  04:47, 8 May 2011 (UTC)
 * didn't know you can do it like that, actually i have no idea how to get ahk to work :D. so you can list the hotkeys and use %A_ThisHotkey% as the variable to do the same command for all of them?-- Relyk 06:42, 8 May 2011 (UTC)
 * Yep. Just keep in mind that if you had any modifiers on the hotkey label (the ~, +, ^, etc.) they will also be sent. It's not much of a problem for Ctrl and Shift in Guild Wars, but the tilde can be annoying. You'd have to do a string replace as follows to get rid of it:
 * StringReplace, Button, A_ThisHotkey, ~
 * Send 5%Button%
 * Note that you have to use a second variable since you can't rewrite the contents of A_ThisHotkey manually. --  Toraen   talk  06:58, 8 May 2011 (UTC)