Problems with two Hotkey Scripts

Ask gaming related questions (AHK v1.1 and older)
TheyCalledHimGod
Posts: 12
Joined: 23 May 2016, 10:37

Problems with two Hotkey Scripts

23 May 2016, 10:50

Hey there,

I am new here and also new to programming. So I made two scripts and they don´t seem to work. Please explain why and how to fix it.
Thanks in advance.

1:

+Down::suspend, toggle
wheelup::SendInput {+ down}{LButton}{+ up}
wheeldown::SendInput {+ down}{RButton}{+ up}

2:

F12::suspend, toggle
mwheelup::SendInput {LButton}
mwheeldown::SendInput {RButton}
Shadowpheonix
Posts: 1259
Joined: 16 Apr 2015, 09:41

Re: Problems with two Hotkey Scripts

24 May 2016, 09:20

For your first script, are you actually wanting to hold down the plus key while pressing the mouse button (which is what your code does), or did you mean for it to hold down the shift key? If you meant the shift key, you need to either use the word "shift" inside the curly braces, so that it looks like this...

Code: Select all

+Down::suspend, toggle
wheelup::SendInput {Shift down}{LButton}{Shift up}
wheeldown::SendInput {Shift down}{RButton}{Shift up}
Or you need to use the plus key without the curly braces or the "up" and "down" tags - resulting in this...

Code: Select all

+Down::suspend, toggle
wheelup::SendInput +{LButton}
wheeldown::SendInput +{RButton}

For the second script, "mwheelup" and "mwheeldown" are not valid - they should not have the "m".

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 49 guests