Con Posted November 17, 2007 Share Posted November 17, 2007 hi howcome when i make a script that moves the mouse to a cerrtain position on my laptop and then when i use it on another computer it moves to a different place? is ther a way to stop this? p.s this is probably a really nooby questrion sory and thx in advance Hello? Link to comment Share on other sites More sharing options...
FireLord Posted November 17, 2007 Share Posted November 17, 2007 Probably because the screen resolution is different from the other computer... Just a guess. [center]See the Helpfile[/center] While Alive() DrinkWine(); }[center][/center] Link to comment Share on other sites More sharing options...
Con Posted November 17, 2007 Author Share Posted November 17, 2007 Probably because the screen resolution is different from the other computer...Just a guess.umm alright how do i fix the problem without changing resolution Hello? Link to comment Share on other sites More sharing options...
FireLord Posted November 17, 2007 Share Posted November 17, 2007 I don't know what you are trying to accomplish. Depends what it is. Then I might be able to help. [center]See the Helpfile[/center] While Alive() DrinkWine(); }[center][/center] Link to comment Share on other sites More sharing options...
Con Posted November 17, 2007 Author Share Posted November 17, 2007 I don't know what you are trying to accomplish. Depends what it is. Then I might be able to help.ok so say i want to click on the back button in ie, how would i make my script do that on any computer? no matter what the resolution is. Hello? Link to comment Share on other sites More sharing options...
newb_powa' Posted November 17, 2007 Share Posted November 17, 2007 ok so say i want to click on the back button in ie, how would i make my script do that on any computer? no matter what the resolution is.This will make the coordinate work on every computer, but if you are trying to automate IE you should look at _IE UDF.MouseMove((X/Width of 1rst computer)*@DesktopWidth, (Y/Height of 1rst computer)*@DesktopHeight)ex: MouseMove((50/1024)*@DesktopWidth, (50/728)*@DesktopHeight) Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 17, 2007 Share Posted November 17, 2007 ok so say i want to click on the back button in ie, how would i make my script do that on any computer? no matter what the resolution is._IEAction($oIE, "back") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
FireLord Posted November 17, 2007 Share Posted November 17, 2007 (edited) @Con In your example PsaltyDS suggestion was the easiest. Now if you wanted to click things other than Internet Explorer you need to get the control ID of the object you want to click and then do a ControlClick() (AutoIt Win Info). When using ControlClick() coords have no effect on where it's going to click. Edited November 17, 2007 by FireLord [center]See the Helpfile[/center] While Alive() DrinkWine(); }[center][/center] 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