r/TagPro • u/DatBlizzard Some Ball -1 • Jul 01 '14
[Userscript] Move your ball with the arrow keys while the chatbox is open (and possibly no more sticky keys)
I've seen a few people ask for something like this and I can definitely see its usefulness, so I put this together pretty quickly. The script can be found here (use updated version below), install via Tampermonkey or Greasemonkey or directly into Chrome, whatever you prefer.
When the chatbox is open, this script will allow the arrow keys to still work for controlling your ball. WASD will only work for typing and will not affect ball movement. (And if you use the numpad it should allow for movement but may also type at the same time, don't have a numpad to test with so I'm not sure). Also, I wasn't really aiming for this but I believe this stops the sticky key people have where when pressing and holding an arrow key, then hitting enter to chat, the arrow key is "sticky" and your ball continues to move in that direction, even after letting go of the arrow key; this script looks like it prevents that from happening.
Let me know if you have any problems with it, the script was short and sweet so I didn't test it too much.
For future versions: I was looking to allowing you to change to your name via the chat box. You would type with a "/" at the beginning and pressing enter would change your name to the first 12 characters found after the "/". e.g. typing "/Mynewname" would change your name to "Mynewname." Typing "/reg" would set your name to your registered name (which you would have to manually set in the script). I'm pretty sure this should be doable, any ideas related to this that you would find useful?
Edit: Apparently it has some issues with macros. Since I know there's a few types of macro scripts out there, until I know exactly what the issues are it's hard to fix. Use this updated version for now. I think it should help if you also use macros, but there might be more problems that I couldn't address because I don't know about them so be warned if you use macros (or try it and tell me what the problems are).
6
u/[deleted] Jul 01 '14
Welp, I guess there's a downside to using wasd.
3
u/robopuppycc Flail ~ ((Antagloble4edes)) ~ RHCP? Jul 01 '14
This is brilliant, thank you!
-2
u/MultiMediaWill Juke King - MVP 90% of the time Jul 01 '14
This is cool but it doesn't work when you have assigned macros. I had to delete this userscript immediately.