Jump to content

Recommended Posts

Posted

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?
Posted

Probably because the screen resolution is different from the other computer...

Just a guess.

[center]See the Helpfile[/center]

While Alive()
	 DrinkWine();
}
[center][/center]
Posted

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?
Posted

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]
Posted

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?
Posted

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)

Posted (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 by FireLord

[center]See the Helpfile[/center]

While Alive()
	 DrinkWine();
}
[center][/center]

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
×
×
  • Create New...