Phaethon Posted September 4, 2007 Share Posted September 4, 2007 (edited) Well, I'm making a series of programs using "PixelSearch" and some things like that, but what I'd like some help with it moving the mouse a certain number of pixels, rather than to a certain coordinate set.. Is there a function for this? Or is there another way to do this? (I need to right click on something, then move down to one of the options) If anyone could help me, that would be great! Edited September 4, 2007 by Phaethon Coder's Helper >> Here[center][/center] Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 4, 2007 Share Posted September 4, 2007 (edited) Func _MouseMove($x=0, $y=0, $speed=10) $pos = MouseGetPos() MouseMove($pos[0] + $x, $pos[1] + $y, $speed) EndFunc should work Edit: you gotta use negative or positive values for whether you wanna move to the left or right or up or down and whatnot. Edited September 4, 2007 by the_lord_mephy My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Phaethon Posted September 4, 2007 Author Share Posted September 4, 2007 (edited) Works beautifully! Thank you very much! One other thing if anyone would like to help me out again :"> With "PixelSearch", what would the values be if I wanted to search the whole screen on 1280 x 1024 res screen? (i.e. PixelSearch(left,top,right,bottom...)), I am confused as to what "left","top", etc would be.. Edited September 4, 2007 by Phaethon Coder's Helper >> Here[center][/center] Link to comment Share on other sites More sharing options...
qazwsx Posted September 4, 2007 Share Posted September 4, 2007 its top left is 0,0 bottom right is 1280 , 1024 Link to comment Share on other sites More sharing options...
herewasplato Posted September 4, 2007 Share Posted September 4, 2007 ...(i.e. PixelSearch(left,top,right,bottom...)), I am confused as to what "left","top", etc would be.."Most" get confused and "most" is the clarification - left-most = 0top-most = 0right-most = 1280bottom-most = 1024...but alas, I'm posting too late... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Phaethon Posted September 5, 2007 Author Share Posted September 5, 2007 "Most" get confused and "most" is the clarification - left-most = 0top-most = 0right-most = 1280bottom-most = 1024...but alas, I'm posting too late...Well, thank you for the clarification. Coder's Helper >> Here[center][/center] Link to comment Share on other sites More sharing options...
herewasplato Posted September 5, 2007 Share Posted September 5, 2007 ...(I need to right click on something, then move down to one of the options)...You may find that sending a letter to the menu works as well... even if the menu changes options based on what was selected before the right-click. Not all option menus show the shortcut keys - notepad does, SciTE does not - but they are there nonetheless... at least within XP.-MSP- [size="1"][font="Arial"].[u].[/u][/font][/size] 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