I want to have control using 4 arrow keys even when two keys are pressed. For example I press Up and left so it goes diagonal up,left.
I stared to write some script but have problem with blocking if statements:
Code: Select all
z & i::
If GetKeyState("j")
MouseMove, -20, -20, 0, R
else if GetKeyState("l")
MouseMove, 20, -20, 0, R
else
MouseMove, 0, -20, 0, R
Return
z & k::
If GetKeyState("j")
MouseMove, -20, 20, 0, R
else if GetKeyState("l")
MouseMove, 20, 20, 0, R
else
MouseMove, 0, 20, 0, R
Return
Code: Select all
z & j:: MouseMove, -20, 0, 0, R ; Win+UpArrow hotkey => Move cursor upward
z & l::MouseMove, 20, 0, 0, R ; Win+RightArrow => Move cursor to the right