Multiple mouse/keyboard outputs at the same time

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
hhez
Posts: 16
Joined: 20 Jan 2024, 13:34

Multiple mouse/keyboard outputs at the same time

Post by hhez » 12 Feb 2024, 12:23

Hi there, I have been having issues using my scroll wheel so wanted to make a script to do it for me. I need to use shift + scroll wheel (down) at the same time, but I can't figure out how to use a hotkey to send both of these outputs simultaneously. If anyone could help it would be greatly appreciated. If possible, could someone also explain how the scroll wheel function works? I can't seem to change the speed/quantity of "scrolls". Thanks in advance!

User avatar
lmstearn
Posts: 698
Joined: 11 Aug 2016, 02:32
Contact:

Re: Multiple mouse/keyboard outputs at the same time

Post by lmstearn » 13 Feb 2024, 00:00

GetkeyState detects shift, the WheelUp, WheelDown, (horz scroll) +WheelUp, +WheelDown hotkeys, pick up the general wheeling.
The speed of the scroll is set in the Wheel tab here:

Code: Select all

run  main.cpl
In a nutshell, the functionality of scrolling within browsers or doc/editor programs in Windows depends on scrollbars and messaging, a scrollbar is like a window overlay that listens for mouse wheeling/clicking and keystate. Without them, custom scrolling for DCs is possible with viewports and the like.
Just me posted a class for scrolling, the comments towards the end may help as well. :)
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH

Rohwedder
Posts: 7771
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Multiple mouse/keyboard outputs at the same time

Post by Rohwedder » 13 Feb 2024, 04:54

Hallo,
try:

Code: Select all

F2::Send, +{WheelDown} ; shift + scroll wheel (down)

Post Reply

Return to “Ask for Help (v1)”