Page 1 of 1

WheelUp/Down do not work.

Posted: 13 Aug 2018, 01:06
by Activity
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
}

Re: WheelUp/Down do not work.

Posted: 13 Aug 2018, 01:21
by pro100andrik94
First thing first put your code in code case, not to spoiler.

Re: WheelUp/Down do not work.

Posted: 13 Aug 2018, 01:25
by Activity
There. Done.

Re: WheelUp/Down do not work.

Posted: 13 Aug 2018, 01:32
by Rohwedder
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