How to hold down left mouse button key on a specifc loaction and specific app.
im just a beginner
Lbutton down
Re: Lbutton down
I think the easiest way is (replace "notepad" with your program, 15[Y position], 62[X position]):
In case you don't want to lose focus on your active program:
The documentation for each one:
• https://autohotkey.com/docs/commands/MouseClick.htm
• https://autohotkey.com/docs/commands/ControlClick.htm
Greetings,
Code: Select all
;; Drag from the start of a notepad.
WinActivate, ahk_exe notepad.exe
MouseClick,, 15, 62,, 0, D
Code: Select all
;; Drag from the start of a notepad.
ControlClick, x15 y62, ahk_exe notepad.exe,,,, NA D
• https://autohotkey.com/docs/commands/MouseClick.htm
• https://autohotkey.com/docs/commands/ControlClick.htm
Greetings,
Re: Lbutton down
does it work for you i dont know if im doing it wrong or it just aint possibleeqv wrote: ↑27 Dec 2018, 10:28I think the easiest way is (replace "notepad" with your program, 15[Y position], 62[X position]):In case you don't want to lose focus on your active program:Code: Select all
;; Drag from the start of a notepad. WinActivate, ahk_exe notepad.exe MouseClick,, 15, 62,, 0, D
The documentation for each one:Code: Select all
;; Drag from the start of a notepad. ControlClick, x15 y62, ahk_exe notepad.exe,,,, NA D
• https://autohotkey.com/docs/commands/MouseClick.htm
• https://autohotkey.com/docs/commands/ControlClick.htm
Greetings,
Re: Lbutton down
Have you tested in notepad? It works as I expect; how it respond may depend on the program that you are trying to apply.Swift wrote: ↑27 Dec 2018, 11:51does it work for you i dont know if im doing it wrong or it just aint possibleeqv wrote: ↑27 Dec 2018, 10:28I think the easiest way is (replace "notepad" with your program, 15[Y position], 62[X position]):In case you don't want to lose focus on your active program:Code: Select all
;; Drag from the start of a notepad. WinActivate, ahk_exe notepad.exe MouseClick,, 15, 62,, 0, D
The documentation for each one:Code: Select all
;; Drag from the start of a notepad. ControlClick, x15 y62, ahk_exe notepad.exe,,,, NA D
• https://autohotkey.com/docs/commands/MouseClick.htm
• https://autohotkey.com/docs/commands/ControlClick.htm
Greetings,
Who is online
Users browsing this forum: No registered users and 385 guests