I managed to write this code so Minecraft thinks I press LShift when I press n. And it worked perfect until I wanted to chat with my friends... Is it possible to make it so that it only applies when I'm not in the chat? So when I press T (open chat), it deactivates and when I press Enter (send message) it activates again.
This is my code so far:
Code: Select all
GroupAdd, Minecraft, Minecraft
GroupAdd, Minecraft, ahk_exe javaw.exe
#IfWinActive, Minecraft ahk_exe javaw.exe
n::LShift
return