Quote:
Originally Posted by jtremblay
The mouse is not a very accurate way of moving it since it moves a different ammount every time.
|
in fact the mouse and rotation is very precise if you do some
calculations:
just read out the window size of "Rappelz" then move
to for example 1/2 of the screen height. Then the movement
to the screen width is proportional to the rotation angle.
for example rotation 45 degree is 0.25 * window width,
90 degree is 0.5 * window width, 270 degree is 0.75 *
screen width 360 degree is 1 * window width.
additional hint: the window has a border....^^
[snipp]
$seppel = WinGetPos ("Rappelz")
'turn 45 degree.........................................
WinActivate("whatever")
sleep(200)
MouseMove((0.5 * seppel[2]), (0 * seppel[3]), 0)
sleep(200)
MouseDown("right")
MouseMove((0.5 * seppel[2]), (0.25 * seppel[2]), 0)
MouseUp("right")
WinActivate("Rappelz")
sleep(1000)
'turn 45 degree.........................................
'move............................................. ......
ControlClick("Rappelz","","","left", 1, (0.2 * seppel[3]), (0.5 * seppel[2]), 0))
'move............................................. ......
[snapp]