But if I try to mimic that in ahk, it breaks:
Code: Select all
LShift & LButton::
sendinput {LShift Down}{LButton}{LShift Up}
return
How can I fix this hotkey to achieve what I want?
Code: Select all
LShift & LButton::
sendinput {LShift Down}{LButton}{LShift Up}
return
Because I'm trying to change the behavior depending on the window the mouse is over.boiler wrote: ↑14 Aug 2022, 07:42Why do you need an AHK script to have it act the way it already acts? What value would the script be adding? I could understand if you were trying to perform the same but using a different key to initiate the drag, but you apparently are trying to have the hotkey do exactly the same as it would without the script.
Code: Select all
; pseudocode
LShift & LButton::
if(mouse is over my special application)
{
; do the thing i want
} else {
;send LShift & LButton to behave like normal
}
return