Win + Alt + left mouse button Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
roysubs
Posts: 428
Joined: 29 Sep 2018, 16:37

Win + Alt + left mouse button

18 May 2021, 09:35

For tracing out a region of the screen for a snip, I have the following:

Code: Select all

~Alt & LButton::      ; Start tracing out the rectangle by holding Alt and the left mouse button
    MouseGetPos, Xi, Yi
This works fine, but using Alt + left mouse button is not ideal for me, since Notepad++ uses Alt + left mouse drag to block select. So, I would like to change the above to WinKey + Alt + left mouse button, but I can't do that:

Code: Select all

~Win & Alt & LButton::      ; Start tracing out the rectangle by holding Alt and the left mouse button
How can I define Win & Alt & LButton?
User avatar
mikeyww
Posts: 27049
Joined: 09 Sep 2014, 18:38

Re: Win + Alt + left mouse button

18 May 2021, 09:44

Here is an example.

Code: Select all

#!LButton::Send x
roysubs
Posts: 428
Joined: 29 Sep 2018, 16:37

Re: Win + Alt + left mouse button

18 May 2021, 10:32

ok, great. I'm a bit confused though as to why the author of the screengrab code used ~Alt & LButton:: , why would he not just use !LButton ?
User avatar
mikeyww
Posts: 27049
Joined: 09 Sep 2014, 18:38

Re: Win + Alt + left mouse button  Topic is solved

18 May 2021, 10:34

I do not know! There are certain differences-- see documentation-- but in most cases, when you can avoid &, it's better.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 329 guests