Since the release of the game, I was wanting to create a script in which I could bind the actions required to perform a special attack. I first used a sample script which was used in Mortal Kombat 9 in junction with autohotkey to see how it would perform in the new game. However, I found that neither the script nor keyboard macros made in Microsoft Mouse and Keyboard Center wouldn't do anything in game. I can confirm the script works outside of the game, such as typing letters in the Google search bar. I would like to know what is preventing these macros and if there is any workaround for it
The sample script I used (retrieved from mksecrets.com by user percitrovsk)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ; Numpad Commands Numpad1:: ; FK - Front Kick / Confirm Send {g down} KeyWait Numpad1 Send {g up} return Numpad2:: ; BK - Back Kick / Cancel Send {j down} KeyWait Numpad2 Send {j up} return Numpad3:: ; BL - Block Send {Space down} KeyWait Numpad3 Send {Space up} return Numpad4:: ; FP - Front Puch Send {t down} KeyWait Numpad4 Send {t up} return Numpad5:: ; BP - Back Punch Send {u down} KeyWait Numpad5 Send {u up} return Numpad6:: ; TH - Throw Send {y down} KeyWait Numpad6 Send {y up} return Numpad7:: ; TG - Tag Send {Tab down} KeyWait Numpad7 Send {Tab up} return Numpad8:: ; SS - Flip Stance Send {h down} KeyWait Numpad8 Send {h up} return Numpad9:: ; X-Ray (BL + SS) Send {Space down}{h down} KeyWait Numpad9 Send {Space up}{h up} return Numpad0:: ; Start Send {1 down} KeyWait Numpad0 Send {1 up} return NumpadDot:: ; Back Send {4 down} KeyWait NumpadDot Send {4 up} return ; Q + Numpad Commands (your character in the left) Q & Numpad1:: ; Low Forceball Send {s down} Sleep, 30 Send {s up} Send {d down} Sleep, 30 Send {d up} Send {u down} Sleep, 30 Send {u up} return Q & Numpad2:: ; High Forceball Send {s down} Sleep, 30 Send {s up} Send {a down} Sleep, 30 Send {a up} Send {u down} Sleep, 30 Send {u up} return Q & Numpad3:: ; Flip Kick Send {s down} Sleep, 30 Send {s up} Send {a down} Sleep, 30 Send {a up} Send {g down} Sleep, 30 Send {g up} return Q & Numpad4:: ; Shadow Kick Send {a down} Sleep, 30 Send {a up} Send {d down} Sleep, 30 Send {d up} Send {j down} Sleep, 30 Send {j up} return Q & Numpad5:: ; Nut Punch Send {a down} Sleep, 30 Send {a up} Send {s down} Sleep, 30 Send {s up} Send {t down} Sleep, 30 Send {t up} return Q & Numpad7:: ; Combo - 4 Hits Send {u down} Sleep, 30 Send {u up} Sleep, 60 Send {t down} Sleep, 30 Send {t up} Sleep, 60 Send {d down}{u down} Sleep, 30 Send {d up}{u up} Sleep, 1000 Send {a down} Sleep, 30 Send {a up} Send {d down} Sleep, 30 Send {d up} Send {j down} Sleep, 30 Send {j up} return Q & Numpad8:: ; Combo - 4 Hits Send {d down}{g down} Sleep, 30 Send {d up}{g up} Sleep, 60 Send {g down} Sleep, 30 Send {g up} Sleep, 100 Send {a down}{g down} Sleep, 30 Send {a up}{g up} Sleep, 400 Send {a down} Sleep, 30 Send {a up} Send {s down} Sleep, 30 Send {s up} Send {t down} Sleep, 30 Send {t up} return Q & Numpad9:: ; Combo - 5 Hits (opponent must be in corner, sometimes fails) Send {d down}{j down} Sleep, 30 Send {d up}{j up} Sleep, 700 Send {d down}{j down} Sleep, 30 Send {d up}{j up} Sleep, 800 Send {t down} Sleep, 30 Send {t up} Sleep, 10 Send {t down} Sleep, 30 Send {t up} Sleep, 60 Send {s down} Sleep, 30 Send {s up} Send {a down} Sleep, 30 Send {a up} Send {g down} Sleep, 30 Send {g up} return Q & Numpad0:: ; Stage Fatality (Distance: Varies) Send {s down} Sleep, 30 Send {s up} Send {a down} Sleep, 30 Send {a up} Send {d down} Sleep, 30 Send {d up} Send {Space down} Sleep, 30 Send {Space up} return Q & NumpadAdd:: ; Babality (Distance: Jump) Send {d down} Sleep, 30 Send {d up} Send {a down} Sleep, 30 Send {a up} Send {d down} Sleep, 30 Send {d up} Send {j down} Sleep, 30 Send {j up} return Q & NumpadDiv:: ; Fatality 1 - Heads Up! (Distance: Touching) Send {d down} Sleep, 30 Send {d up} Sleep, 10 Send {d down} Sleep, 30 Send {d up} Send {a down} Sleep, 30 Send {a up} Send {s down} Sleep, 30 Send {s up} Send {g down} Sleep, 30 Send {g up} return Q & NumpadMult:: ; Fatality 2 - And the Winner Is... (Distance: Sweep) Send {s down} Sleep, 30 Send {s up} Send {d down} Sleep, 30 Send {d up} Send {s down} Sleep, 30 Send {s up} Send {d down} Sleep, 30 Send {d up} Send {j down} Sleep, 30 Send {j up} return ; E + Numpad Commands (your character in the right) E & Numpad1:: ; Low Forceball Send {s down} Sleep, 30 Send {s up} Send {a down} Sleep, 30 Send {a up} Send {u down} Sleep, 30 Send {u up} return E & Numpad2:: ; High Forceball Send {s down} Sleep, 30 Send {s up} Send {d down} Sleep, 30 Send {d up} Send {u down} Sleep, 30 Send {u up} return E & Numpad3:: ; Flip Kick Send {s down} Sleep, 30 Send {s up} Send {d down} Sleep, 30 Send {d up} Send {g down} Sleep, 30 Send {g up} return E & Numpad4:: ; Shadow Kick Send {d down} Sleep, 30 Send {d up} Send {a down} Sleep, 30 Send {a up} Send {j down} Sleep, 30 Send {j up} return E & Numpad5:: ; Nut Punch Send {d down} Sleep, 30 Send {d up} Send {s down} Sleep, 30 Send {s up} Send {t down} Sleep, 30 Send {t up} return E & Numpad7:: ; Combo - 4 Hits Send {u down} Sleep, 30 Send {u up} Sleep, 60 Send {t down} Sleep, 30 Send {t up} Sleep, 60 Send {a down}{u down} Sleep, 30 Send {a up}{u up} Sleep, 1000 Send {d down} Sleep, 30 Send {d up} Send {a down} Sleep, 30 Send {a up} Send {j down} Sleep, 30 Send {j up} return E & Numpad8:: ; Combo - 4 Hits Send {a down}{g down} Sleep, 30 Send {a up}{g up} Sleep, 60 Send {g down} Sleep, 30 Send {g up} Sleep, 100 Send {d down}{g down} Sleep, 30 Send {d up}{g up} Sleep, 400 Send {d down} Sleep, 30 Send {d up} Send {s down} Sleep, 30 Send {s up} Send {t down} Sleep, 30 Send {t up} return E & Numpad9:: ; Combo - 5 Hits (sometimes fails) Send {a down}{j down} Sleep, 30 Send {a up}{j up} Sleep, 700 Send {a down}{j down} Sleep, 30 Send {a up}{j up} Sleep, 800 Send {t down} Sleep, 30 Send {t up} Sleep, 10 Send {t down} Sleep, 30 Send {t up} Sleep, 60 Send {s down} Sleep, 30 Send {s up} Send {d down} Sleep, 30 Send {d up} Send {g down} Sleep, 30 Send {g up} return E & Numpad0:: ; Stage Fatality (Distance: Varies) Send {s down} Sleep, 30 Send {s up} Send {d down} Sleep, 30 Send {d up} Send {a down} Sleep, 30 Send {a up} Send {Space down} Sleep, 30 Send {Space up} return E & NumpadAdd:: ; Babality (Distance: Jump) Send {a down} Sleep, 30 Send {a up} Send {d down} Sleep, 30 Send {d up} Send {a down} Sleep, 30 Send {a up} Send {j down} Sleep, 30 Send {j up} return E & NumpadDiv:: ; Fatality 1 - Heads Up! (Distance: Touching) Send {a down} Sleep, 30 Send {a up} Sleep, 10 Send {a down} Sleep, 30 Send {a up} Send {d down} Sleep, 30 Send {d up} Send {s down} Sleep, 30 Send {s up} Send {g down} Sleep, 30 Send {g up} return E & NumpadMult:: ; Fatality 2 - And the Winner Is... (Distance: Sweep) Send {s down} Sleep, 30 Send {s up} Send {a down} Sleep, 30 Send {a up} Send {s down} Sleep, 30 Send {s up} Send {a down} Sleep, 30 Send {a up} Send {j down} Sleep, 30 Send {j up} return