r/MLTP•
MisterGone5

Solving Macro issues

#https://autohotkey.com/

####*Windows only, sorry OSX users


AutoHotKey is an open-source automation software. It can be used for various things, but in this post I will be sharing how to use it to remap arrowkeys and how to use it to create text macros (#savethepuppies).

Step 1.
Download the program from their website.

Step 2.
Download these two files (or whichever one you wish to use).
Macro Script
Key Remapper

Step 3.
Right click on the files, hover over "Open with...", select Notepad.

Step 4.
Basic instructions are provided inside the files in terms of customizing the scripts to your personal preferences. Remember to save the files when you are finished.

Step 5.
Run the script.


These scripts will run on the entirety of your computer, not just in the tagpro window. To disable them when outside of game, click on the "show hidden icons" button on your taskbar, right click the Script icon (Green box with a white H inside), and select "suspend hotkeys". This is also where you close the script.

I'll answer any questions I can in the comments.

Posted Jun 7, 2016, 5:15 AM UTC

957
ProTagonist_•

be me

one of very few micless players in MLTP

see "solving macro issues" post

Windows only

have a Mac

kms

17
MisterGone5OP•

there are similar programs for Mac, I'm just not familiar with them as I don't have a Mac

3
RICK_SLICKit's rick slick baby believe in yaself•
1
donuts42•

You have automator preinstalled on your computer.

2
Ashmungashma•

You should look into Murgaa if you're a Mac user; I've use their autoclickers to relative success.

1
InABallOfGloryFURY.•

I'm really not very technically inclined but is there any way anyone could look into a Mac version? I really have no idea what I'd be looking at.

2
CallMeLargeFatherEggo || Team Dale•

So im gonna have to remember to turn this on every official mltp game? Theres no way to have it only run for a specific address?

1
MisterGone5OP•

It's running system wide, I haven't delved deep enough into AHK to find out if you can have it run on only a specific website.

1
CallMeLargeFatherEggo || Team Dale•

Then i foresee this working great for 3 halves per week!

Thanks for coming up with something though, glad to see crc members addressing the concerns from the community

3
CallMeLargeFatherEggo || Team Dale•

Can you walk me through this? I have no idea what im doing here:

1::

send, {Enter}

SendInput, Put your text here

send, {Enter}

Return

So for it to say "grab powerups!!" when i hit the p-key do i want it to look like this?:

p::

send, {Enter}

SendInput, grab powerups!!

send, {Enter}

Return

I have no idea but i know this is wrong. With this script i will also only need to hit the p-key correct? No need to hit "Enter-p-Enter" right?

1
MisterGone5OP•

yup that's right, you just have to press p, no enter.

2
CallMeLargeFatherEggo || Team Dale•

Alright i gave it a shot in some pubs and it was really something else

First of all i assume changing the word "Enter" to "t" sends it to my team only?

Next, the key "p" was a bad choice as it cant send my message anymore. This program evidently tries to type for me as opposed to my old script which pasted it in, as the message i was sending looks something like this: "grab owerus"

I tried another macro as well with the "1" and i dont think the program can use anything that requires the shift-key to type.

1
MisterGone5OP•

SendInput sends the messages with no delay, so I don't think those should be problems, I'll troubleshoot when I get home from work

1
CallMeLargeFatherEggo || Team Dale•

I tried using "1" as "#toasted" and i got kicked from the game

Not gonna lie it would be pretty funny if someone knew this would happen to me

1
CallMeLargeFatherEggo || Team Dale•

Here's a screenshot of the problem in case it will help at all:

I hit "p" which is set to send "grab powerups!!" to my team, the problem (i believe) is that the letter "p" is in the message and so i get this:

http://i.imgur.com/vLwbGPT.png

EDIT: I realized i may have fucked up so i switched the code to say

p::

send, {t}

SendInput, grab powerups!!

send, {Enter}

Return

and now it doesnt send anything but it opens and closes my chatbox a few times and gives me packet loss

1
MisterGone5OP•

make sure to reload the script or close out and reopen it after you save changes, if you have it open.

2
CallMeLargeFatherEggo || Team Dale•

Thanks!

1
XelifFerret•

Another very useful AHK script:

#NoEnv
SendMode Input
^w::Return

This disables CTRL-W entirely, and thus prevents you from accidentally closing the window if your macros/whatever might have you accidentally hit that key combo.

1
RonSpawnsonTP•

Won't this method impact movement due to sticky keys bug?

Edit: For example - If I'm holding right, hit a macro with AHK and immediately after let go of right, I'll be stuck moving right until I again hit it and rerelease it.

Edit 2: We've both tested it and neither of us were able to reproduce this. I think AHK is fast enough it makes this very difficult if not impossible to reproduce. This method appears to be pretty sound.

-1†
catalyst518Catalyst•

This is the same thing I responded to you about in the other thread. There won't be any issues. This is just remapping the activation keys.

Edit: Oh, I see that there is a slight difference in this thread. I thought this was just to remap the MLTP server built-in mcaros. You're right that this script posted seems like it would cause the bug. However the second part of this post, the remapper script, is the useful one for MLTP.

1
RonSpawnsonTP•

Nope - this one is different. It actually allows you to customize your own messages and physically brings up the chatbox. Take a gander at the script for reference:

Numpad2::
SendInput, {Enter}
SendInput, Put your text here
SendInput, {Enter}
Return
0
catalyst518Catalyst•

Yeah, you were too fast for my edit after I realized what was actually in the posted script.

2
RonSpawnsonTP•

Lol we both had to take a turn mixing this up

1
MisterGone5OP•

no, and if for some reason it does you can always just disable sticky keys.

-1
RonSpawnsonTP•

you can always just disable sticky keys.

That's a thing now? I don't believe so. Pressing enter while moving will prevent you from entering any additional movement keys, as well as keep you stuck in that direction until the chatbox is closed.

0
MisterGone5OP•
1
RonSpawnsonTP•

I'm referring to the sticky keys bug in TagPro where you get stuck going a certain direction if you are holding it when enter is pressed. Sorry this was a bit ambiguous. Please see the edit above.

1