I had noticed that there were no posts on an easy way to do this, so for the community I would like to share this code. It allows your scroll wheel to change items in ARK, or other games really, the same way it does in Minecraft. If there are any suggested edits please make them and post!
Code: Select all
;------------ ARK: Survival Evolved -----------------
WheelUp::
IfWinActive, ARK: Survival Evolved
{
if (ARKSCROLL < 9)
{
ARKSCROLL := ARKSCROLL + 1
sleep, 10
send, %ARKSCROLL%
Return
}
if (ARKSCROLL >= 9)
{
ARKSCROLL = 0
sleep, 10
send, %ARKSCROLL%
Return
}
Return
}
IfWinNotActive, ARK: Survival Evolved
send, {WheelUp}
Return
WheelDown::
IfWinActive, ARK: Survival Evolved
{
if (ARKSCROLL > 0)
{
ARKSCROLL := ARKSCROLL - 1
sleep, 10
send, %ARKSCROLL%
Return
}
if (ARKSCROLL <= 0)
{
ARKSCROLL = 9
sleep, 10
send, %ARKSCROLL%
Return
}
Return
}
IfWinNotActive, ARK: Survival Evolved
send, {WheelDown}
Return