qazwsx Posted June 26, 2007 Share Posted June 26, 2007 Is there a way to make the mouse move a certain number of pixels in a certain direction, not to any specific coordinates? Link to comment Share on other sites More sharing options...
Leighwyn Posted June 26, 2007 Share Posted June 26, 2007 Is there a way to make the mouse move a certain number of pixels in a certain direction, not to any specific coordinates? Add the amount of pixels desired to the starting positing. $oldpos = MouseGetPos() $deltax = 10 $deltay = 50 MouseMove($oldpos[0]+$deltax,$oldpos[1]+$deltay) Link to comment Share on other sites More sharing options...
MisterBates Posted June 27, 2007 Share Posted June 27, 2007 Is there a way to make the mouse move a certain number of pixels in a certain direction, not to any specific coordinates?Given a direction and distance, convert to x,y "delta" using acos/asin functions, then apply the resulting deltas to mousemove. [u]MisterBates[/u]_____________________________________________________Suspend/Resume Windows ScreensaverWatchWindows - Window watcher/loggerUDF: Click systray menu/submenu itemsUDF: Outlook Express Folder/Message handling (+ example code)HowTo: Multiple icons in one compiled script Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now