LButton remapped for single click but does not lose function for drag
LButton remapped for single click but does not lose function for drag
Hi I want to remap my Left Mouse button to something, but not use it's function when I need to hold and drag.
Re: LButton remapped for single click but does not lose function for drag
You can use Lbutton UP:: as the hotkey (using the hotkey modifier UP) but then the function will still trigger after you drag. Is that okay?
But what you can do is hold a modifier like ctrl while you're dragging. That will prevent the hotkey from triggering.
Or else you will have to use an expression of some sort.. or a directive??
But what you can do is hold a modifier like ctrl while you're dragging. That will prevent the hotkey from triggering.
Or else you will have to use an expression of some sort.. or a directive??
I am your average ahk newbie. Just.. a tat more cute.
Re: LButton remapped for single click but does not lose function for drag
Hi thank you unfortunately that will be more of a pain than ..Nwb wrote:You can use Lbutton UP:: as the hotkey (using the hotkey modifier UP) but then the function will still trigger after you drag. Is that okay?
This is indeed possible. However the below would be ideal!:....hold a modifier like ctrl while you're dragging.
Or else you will have to use an expression of some sort.. or a directive??
Re: LButton remapped for single click but does not lose function for drag
Could someone help in how to use an expression or a directive?
Re: LButton remapped for single click but does not lose function for drag
Congratulations on your 111th posting. The AHK Help is your friend too [Expressions]
Re: LButton remapped for single click but does not lose function for drag
Yep good sarcasm.. except I have already read that.. sorry.BoBo wrote:Congratulations on your 111th posting. The AHK Help is your friend too [Expressions]
Re: LButton remapped for single click but does not lose function for drag
Can someone help me in where to get started as I cannot code
- divanebaba
- Posts: 805
- Joined: 20 Dec 2016, 03:53
- Location: Diaspora
Re: LButton remapped for single click but does not lose function for drag
A help file is not for reading, it is for understanding.blad4 wrote:... except I have already read that.. sorry.
So if you already have read it, maybe reading a second time is necessary.
As I don't have precise information, I can't give you suggestions different then in help file.
Maybe you want your "remapping" ony in a specific window, an expression could like below
Code: Select all
#If WinActive("PacMan2000") ; <--- this is the expression
Lbutton::send Do something ; not a real remapping, more something like a hotkey
#If ; <--- necessary when other "global" hotkeys are following
Einfach nur ein toller Typ.