im just a beginner
![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
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
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,
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,