OK everyone, here's the finished script.
I decided to use the ScrollLock button to activate/deactivate the mouse keys.
Press Scroll Lock to turn these keys on/off.
Hold down Alt, Ctrl, and/or Shift to change the amount of movement.
Use the Up/Down/Left/Right keys to move the mouse cursor.
Have fun!
;Mouse Jog buttons
;Turn on Scroll Lock to turn on mouse buttons. Use Up, Down, Left, & Right keys to move
; mouse pointer. Hold down CTRL, Alt, and/or Shift to affect the amount of movement per keypress.
;Script by RG/2005
;www.AutoHotkey.com forum member
;While holding ctrl and alt, press the arrow keys to move the mouse
$*Left::
{
;Abort if ScrollLock not on.
if GetKeyState("Scrolllock", "T") = false
{
Send,{Left}
return
}
;Determine distance to move mouse
move := -1 ;Initial distance to move.
if GetKeyState("Shift", "P") = true
move := move * 2 ;2x
if GetKeyState("Alt", "P") = true
move := move * 5 ;5x
if GetKeyState("Ctrl", "P") = true
move := move * 10 ;10x
;Send the mousemove event.
MouseMove,move,0,0,R
return
}
$*Right::
{
;Abort if ScrollLock not on.
if GetKeyState("Scrolllock", "T") = false
{
Send,{Right}
return
}
;Determine distance to move mouse
move := 1 ;Initial distance to move.
if GetKeyState("Shift", "P") = true
move := move * 2 ;2x
if GetKeyState("Alt", "P") = true
move := move * 5 ;5x
if GetKeyState("Ctrl", "P") = true
move := move * 10 ;10x
;Send the mousemove event.
MouseMove,move,0,0,R
return
}
$*Up::
{
;Abort if ScrollLock not on.
if GetKeyState("Scrolllock", "T") = false
{
Send,{Up}
return
}
;Determine distance to move mouse
move := -1 ;Initial distance to move.
if GetKeyState("Shift", "P") = true
move := move * 2 ;2x
if GetKeyState("Alt", "P") = true
move := move * 5 ;5x
if GetKeyState("Ctrl", "P") = true
move := move * 10 ;10x
;Send the mousemove event.
MouseMove,0,move,0,R
return
}
$*Down::
{
;Abort if ScrollLock not on.
if GetKeyState("Scrolllock", "T") = false
{
Send,{Down}
return
}
;Determine distance to move mouse
move := 1 ;Initial distance to move.
if GetKeyState("Shift", "P") = true
move := move * 2 ;2x
if GetKeyState("Alt", "P") = true
move := move * 5 ;5x
if GetKeyState("Ctrl", "P") = true
move := move * 10 ;10x
;Send the mousemove event.
MouseMove,0,move,0,R
return
}
SUGGESTIONS WELCOME!!!