Jump to content

moving mouse


Con
 Share

Recommended Posts

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

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

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

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")

:P

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

@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 by FireLord

[center]See the Helpfile[/center]

While Alive()
	 DrinkWine();
}
[center][/center]
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...