ScrollWheel will not run in WIN10 - v1.1.30.00

Get help with using AutoHotkey and its commands and hotkeys
Noel
Posts: 1
Joined: 30 Jan 2020, 12:01

ScrollWheel will not run in WIN10 - v1.1.30.00

30 Jan 2020, 12:10

Used this script for office Keyboard scroll wheel for years under WIN7, but getting error now that I'm on WIN10.

Error at line 5.

Line Text: sc10B Down::Send {WheelUp}
Error: Invalid Hotkey

This is the script...

Code: Select all

; --------------------------------------------------
; Lines that start with a ; semicolon are comments.
; Microsoft Office Keyboard RT9450: Making the ScrollWheel work under Windows 7. ScrollUp/Down Normal, Fast, Faster, Fastest

sc10B Up::Send {WheelDown}
sc111 Up::Send {WheelDown 3}
sc112 Up::Send {WheelDown 5}
sc11F Up::Send {WheelDown 7}
sc10B Down::Send {WheelUp}
sc111 Down::Send {WheelUp 3}
sc112 Down::Send {WheelUp 5}
sc11F Down::Send {WheelUp 7}

Return

 ; makes control-scroll work for zooming

^sc10B Up::Send ^{WheelDown}
^sc111 Up::Send ^{WheelDown 3}
^sc112 Up::Send ^{WheelDown 5}
^sc11F Up::Send ^{WheelDown 7}
^sc10B Down::Send ^{WheelUp}
^sc111 Down::Send ^{WheelUp 3}
^sc112 Down::Send ^{WheelUp 5}
^sc11F Down::Send ^{WheelUp 7}

Return
[Mod edit: [code][/code] tags fixed.]
User avatar
TheDewd
Posts: 1391
Joined: 19 Dec 2013, 11:16
Location: USA

Re: ScrollWheel will not run in WIN10 - v1.1.30.00

03 Feb 2020, 14:41

Removed Down from hotkey trigger. Down is the default trigger and is not required.

Normally, I write my hotkeys on multiple lines while using return:

Code: Select all

sc10B Up::
	Send {WheelDown}
return
Because you are using all single line hotkeys, the error message is not showing the correct line number where the error is occurring.

Removing "Down" should fix this issue.

Code: Select all

; --------------------------------------------------
; Lines that start with a ; semicolon are comments.
; Microsoft Office Keyboard RT9450: Making the ScrollWheel work under Windows 7. ScrollUp/Down Normal, Fast, Faster, Fastest

sc10B Up::Send {WheelDown}
sc111 Up::Send {WheelDown 3}
sc112 Up::Send {WheelDown 5}
sc11F Up::Send {WheelDown 7}
sc10B::Send {WheelUp}
sc111::Send {WheelUp 3}
sc112::Send {WheelUp 5}
sc11F::Send {WheelUp 7}

Return

 ; makes control-scroll work for zooming

^sc10B Up::Send ^{WheelDown}
^sc111 Up::Send ^{WheelDown 3}
^sc112 Up::Send ^{WheelDown 5}
^sc11F Up::Send ^{WheelDown 7}
^sc10B::Send ^{WheelUp}
^sc111::Send ^{WheelUp 3}
^sc112::Send ^{WheelUp 5}
^sc11F::Send ^{WheelUp 7}

Return
Image Bulldozer - Sokoban inspired game from 1994 recreated in AutoHotkey.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], JoeWinograd, marqqer, NOLLIE, songdg, Xtra and 35 guests