It's like this. As I have explained in my above post... I have a rotary encoder for F21 (CCW) and F22(CW)
In my past code I can press down a key to be able to click at mouse coordinate.
While F1 for example is held down... I can then turn the Rotary dial Counter-clockwise or clockwise (F21/F22) to increase/decrease mouse pos values.
Then Release/ Held up F1 to finish. I wanted to be able to eliminate the need to press down F1 but instead, incorporate that Comand under F1 to the rotary encoder (F21/F22)
I Figure out the Mouse Click hold down needs to be timed so mouse move can act then release when no mouse move is done.
This is my Separate mouse click and Mouse move Script (which work)
Code: Select all
F1:: ;TEMPERATURE
WinMaximize, ahk_class Qt5QWindowIcon ;Davinci Resolve Color
SendEvent {Click 131, 770, down}
keywait, F1
SendEvent {Click, , , Up}
return
F21::
MouseMove, -1, 0,, R
return
F22::
MouseMove, 1, 0,, R
return
This one example you showed me works but I can't get to lower than 6 pixel increase or decrease values
F21::
F22::
Click, 134 739 D
Sleep, 10
MouseMove, A_ThisHotkey = "F21" ? -6 : 6, 0,, R
Click, U
Return
So my commands should be like this
Left click down x,y pos (timed 3 seconds)
Mouse Move Increase/decrease values
Left Click Up
else if no mouse move in 300 milliseconds
Left Click Up