Robert Carnegie
Joined: 01 Jun 2005 Posts: 53 Location: Scotland
|
Posted: Fri Aug 12, 2005 12:39 am Post subject: |
|
|
One approach would be a loop that repeatedly reads the mouse pointer coordinates, computes where they are relative to the previous mouse coordinates, and performs a MouseMove in the opposite direction. So the mouse does move left/up but then it immediately gets moved to the same distance right/down from where it started. Now running into the edge of the screen could be tricky... do you have to read the screen size?
There is a possible practical application - on Windows Tablet PC, which is a pen-sensitive screen that can be toggled to portrait or landscape display of Windows XP, some software (The Gimp was named) doesn't recognise the rotation. So a program that converts coordinates by rotating them 90 degrees away from normal might be useful. A bit of a catch is precisely that the Tablet PC picks up the absolute location of the pen, so the "real" location would be regularly fed back in - the "real" location which other software misunderstands because of the screen rotation. |
|