Hello all,
I'm busy with a project for school and fabricated a mouse-like device, that is, it doesn't look like a mouse, but has a ps2 connector and moves my cursor very nicely around the screen...unfortinately I haven't been so smart and now figured out that I need to invert the mouse axis, or rebuild the thing.
I found on internet a file which should invert the axis, but doesn't work for me...
; Script for AutoHotKeys,
http://autohotkey.com/
; Inverts the mouse along the y axis. Works great, but not in games or other
; apps that use DirectInput. :/
#SingleInstance
#Persistent
SetBatchLines, 10ms
;CoordMode, Mouse, Screen
BlockInput, Mouse
SetMouseDelay, -1 ; Makes movement smoother.
oldy = 0 ; initial value
SetTimer, WatchMouse, 1
return
WatchMouse:
IfWinNotActive, Beyond Good & Evil - Ubisoft
return
MouseGetPos, x, y,
delta = %y%
delta -= %oldy%
if delta <> 0
{
delta *= -2
MouseMove, 0, %delta%, 0, R
MouseGetPos, x, oldy
}
return
What could I change in the script in order to make it work?
greetz, Frans