Ctrl + alt + press and hold middle mouse button and move mouse vertically

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Rejin
Posts: 2
Joined: 25 Mar 2024, 09:58

Ctrl + alt + press and hold middle mouse button and move mouse vertically

Post by Rejin » 25 Mar 2024, 10:03

:crazy:

Hey guys I'm kind of a new in this software but I know little bit of a programming I just want to know how to hold on control key + alt key and holding down the scroll wheel and mouse vertically upwards untill i release shift key ....any chance .. i tried alot of mouse events but ....pissed iff

User avatar
mikeyww
Posts: 26972
Joined: 09 Sep 2014, 18:38

Re: Ctrl + alt + press and hold middle mouse button and move mouse vertically

Post by mikeyww » 25 Mar 2024, 10:17

Welcome to this AutoHotkey forum!

When you have a script that is not working, post it!

Code: Select all

#Requires AutoHotkey v2.0

^!+MButton:: {
 While GetKeyState('MButton', 'P') & GetKeyState('Shift', 'P')
  MouseMove 0, -15,, 'R'
 SoundBeep 2500
}

Rejin
Posts: 2
Joined: 25 Mar 2024, 09:58

Re: Ctrl + alt + press and hold middle mouse button and move mouse vertically

Post by Rejin » 25 Mar 2024, 10:35

Sir actually i need to execute ctrl and shift plus scroll key down and move mouse up when i press say left shift key .. when i release it i ld like to stop sction

I tried alot

User avatar
mikeyww
Posts: 26972
Joined: 09 Sep 2014, 18:38

Re: Ctrl + alt + press and hold middle mouse button and move mouse vertically

Post by mikeyww » 25 Mar 2024, 12:40

Code: Select all

#Requires AutoHotkey v2.0

LShift:: {
 Send '{Ctrl down}{Shift down}{MButton down}'
 While GetKeyState(ThisHotkey, 'P')
  MouseMove 0, -15,, 'R'
 Send '{MButton up}{Shift up}{Ctrl up}'
}

Post Reply

Return to “Ask for Help (v2)”