I was trying to MouseMove in an old 3D game ("Harry Potter and the Sorcerer's Stone") playing in screen resolution 640x480. but the resulting mouse movement pattern was FAR from what I programmed. And I don't say about moving character's view or moving the character – it was a 2D move during a spell exam on flat surface (like writing on a blackboard). I tried DllCall("SetCursorPos", …), too. Let's say it was a rectangle, because I also tried that:
Code: Select all
CoordMode "Mouse", "Screen"
q::
{
DllCall("SetCursorPos", "int", 10, "int", 10)
Sleep 400
DllCall("SetCursorPos", "int", 10, "int", 470)
Sleep 400
DllCall("SetCursorPos", "int", 630, "int", 470)
Sleep 400
DllCall("SetCursorPos", "int", 630, "int", 10)
Sleep 400
return
}
I also tried collecting MouseGetPos (every 1 sec, for 10 secs while moving mouse around) but I always got coords around (320±few pixels,250±few pixels).
Is there anything else I can try?
I know that at this stage it becomes easier to skill the game than skill the code, but I'm curious and furious.