WheelUp/Down do not work.

Get help with using AutoHotkey and its commands and hotkeys
Activity
Posts: 4
Joined: 13 Aug 2018, 00:16

WheelUp/Down do not work.

13 Aug 2018, 01:06

I believe it's simply that I used that wrong name for 'WheelUp' and 'WheelDown'...
I couldn't find anything else though... So if you could help, that'd be great!
See 'SPause Binds'


Issue Description.
Spoiler
SPause Binds

Code: Select all

key_SPause:="F11"
key_SPause2:="2"
key_SPause3:="3"
key_SPause4:="4"
key_SPause5:="WheelUp"
key_SPause6:="WheelDown"
SPause Code

Code: Select all

if GetKeyState(key_SPause)
{
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
}

if GetKeyState(key_SPause2)
{
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
}

if GetKeyState(key_SPause3)
{
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
}

if GetKeyState(key_SPause4)
{
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
}

if GetKeyState(key_SPause5)
{
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
}

if GetKeyState(key_SPause6)
{
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
}
Last edited by Activity on 13 Aug 2018, 01:24, edited 1 time in total.
pro100andrik94
Posts: 26
Joined: 08 Aug 2018, 07:27

Re: WheelUp/Down do not work.

13 Aug 2018, 01:21

First thing first put your code in code case, not to spoiler.
Activity
Posts: 4
Joined: 13 Aug 2018, 00:16

Re: WheelUp/Down do not work.

13 Aug 2018, 01:25

There. Done.
Rohwedder
Posts: 1361
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: WheelUp/Down do not work.

13 Aug 2018, 01:32

Hallo,
try Hotkeys:

Code: Select all

key_SPause5:="WheelUp"
key_SPause6:="WheelDown" 
Hotkey, ~%key_SPause5%, key_SPause5
Hotkey, ~%key_SPause6%, key_SPause6
Return
key_SPause5:
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
Return
key_SPause6:
SoundPlay, %A_ScriptDir%\7.mp3
Jump:=false
Forward:=false
Backward:=false
LeftTilt:=false
RightTilt:=false
Left:=false
Right:=false
Prone:=false
Return

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Madma, paik1002, PIJUS_MAGINIFICUS, tmplinshi, truekefir and 209 guests