i've been using this simple script to slide my cursor around my screen(s) by hitting buttons on my house (these buttons are just assigned to keyboard hotkeys that i'll never normally use).
i find the sliding method of moving the cursor very nice - it means i hardly have to move the mouse about on the mat and, i'm not sure why, but it just seems to feel nicer than using an accelerated cursor (i haven't got used to using skwire's MAT app).
REQUEST:
so, here's the request. although i like this sliding cursor motion - it has to carry out the full autohotkey "MouseMove" function before releasing the cursor - so i can't break the movement part way by moving the cursor with my mouse.
does that make sense? in other words: i'd like the buttons on my mouse to start the cursor sliding across the screen BUT as soon as i move the mouse myself - autohotkey releases the cursor and lets me take control.
i thought i'd be able to figure this out myself but i soon realised that the "MouseMove" function isn't something i can command to stop. well, not with my basic knowledge.
i've included my script if it helps - thanks.
i find the sliding method of moving the cursor very nice - it means i hardly have to move the mouse about on the mat and, i'm not sure why, but it just seems to feel nicer than using an accelerated cursor (i haven't got used to using skwire's MAT app).
REQUEST:
so, here's the request. although i like this sliding cursor motion - it has to carry out the full autohotkey "MouseMove" function before releasing the cursor - so i can't break the movement part way by moving the cursor with my mouse.
does that make sense? in other words: i'd like the buttons on my mouse to start the cursor sliding across the screen BUT as soon as i move the mouse myself - autohotkey releases the cursor and lets me take control.
i thought i'd be able to figure this out myself but i soon realised that the "MouseMove" function isn't something i can command to stop. well, not with my basic knowledge.
i've included my script if it helps - thanks.
Code: (autoit)
;SlideCursor
;By nudone
;date: 2010-04-26
ScriptVersion=0.2
;function: Slides mouse cursor across whole screens. For multi-monitor systems.
;CoordMode,Mouse,Screen ;this isn't used
;# = winkey, ! = alt, ^ = control, + = shift
Menu,Tray,Icon,%SystemRoot%\system32\SHELL32.dll,101
Menu,Tray,Tip,SlideCursor %ScriptVersion%
Hotkey, #k, MoveUp
Hotkey, ^!+k, MoveUp ; * to work with programmable mouse buttons (if winkey not accepted)
Hotkey, ^!+j, MoveDown
Hotkey, #j, MoveDown ; *
Hotkey, #+j, MoveLeft
Hotkey, ^!+h, MoveLeft ; *
Hotkey, #+k, MoveRight
Hotkey, ^!+l, MoveRight ; *
;screen sizes
TopScreenHeight=1080
MiddleScreenWidth=1920
LeftScreenWidth=1024
RightScreenWidth=1024
;mouse cursor movement speed
VerticalSpeed=5 ; 0 = fastet, 100 = slowest
HorizontalSpeed=10
return
; Move the mouse upwards:
MoveUp:
MouseGetPos, xpos, ypos
MouseMove, xpos, ypos - (TopScreenHeight*0.95), VerticalSpeed
return
; Move the mouse downwards:
MoveDown:
MouseGetPos, xpos, ypos
MouseMove, xpos, ypos + (TopScreenHeight*0.95), VerticalSpeed
return
; Move the mouse to (far) left:
MoveLeft:
MouseGetPos, xpos, ypos
;MouseMove, xpos - MiddleScreenWidth - LeftScreenWidth , ypos, HorizontalSpeed ; use for 3 screens full travel
MouseMove, xpos - LeftScreenWidth, ypos, HorizontalSpeed ;
return
; Move the mouse to (far) right:
MoveRight:
MouseGetPos, xpos, ypos
;MouseMove, xpos + MiddleScreenWidth + LeftScreenWidth , ypos, HorizontalSpeed ;use for 3 screens full travel
MouseMove, xpos + RightScreenWidth, ypos, HorizontalSpeed
return
















Maybe you need a gameMode??