Mario's World Forums

Mario's World Forums (https://forums.mariosworld.org/index.php)
-   ► PC Software (https://forums.mariosworld.org/forumdisplay.php?f=5)
-   -   My custom AutoHotkey scripts. (https://forums.mariosworld.org/showthread.php?t=500)

Mario 23rd June 2018 02:09 PM

My custom AutoHotkey scripts.
 
I have been an AutoHotkey user for many, many years. It's now time for a dedicated thread relating to the use of AutoHotkey. I will catalog the scripts I use for some games, along with some, perhaps colorful, commentary.




METAL GEAR SOLID V GROUND ZEROES:

The following code maps the middle mouse button/scrollwheel to act as the ingame move forward key. The game settings did not allow this.
Code:

MButton::w
The following code maps the ingame R (reload weapon) key to a mouse side button. The game settings did not allow this.
Code:

XButton2::r
The following maps the left ALT key to act as if pressing two keys. More specifically, this game is one of those "try hard" fuckshits that tries to be too clever for its own good and utilize a two tier weapon zoom. You use one key for "hip" zoom, and another key (whilst holding both) to switch to an ironsights view. You're forced to press -and hold- two keys, in sequence, to get the ironsights view. Ingame you would press, in my specific case, left ALT and whilst holding it pressed, the F key. Holding two fucking keys (whilst also moving around and/or doing other ingame things - meaning I'm also pressing/using other keys and/or the mouse) to get the ironsight view for a weapon. Morons. Hideo Kojima is a tryhard fucktard. (Update: The below code no longer, strictly required, as the game does have a reasonable answer - Options > Control Settings > Keep Aim Viewpoint > On)
Code:

~LAlt::
KeyWait, LAlt, T0.1
If ErrorLevel
{
        Send {Blind}{f DownR}
        KeyWait, LAlt
        Send {Blind}{f Up}
}
Return



All times are GMT +8. The time now is 12:32 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
All content ©1997 - 2023, Mario's World, Inc.