Jump to content
Sign in to follow this  
Con

moving mouse

Recommended Posts

Con

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?

Share this post


Link to post
Share on other sites
FireLord

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

Just a guess.


[center]See the Helpfile[/center]
While Alive()
	 DrinkWine();
}
[center][/center]

Share this post


Link to post
Share on other sites
Con

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?

Share this post


Link to post
Share on other sites
FireLord

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]

Share this post


Link to post
Share on other sites
Con

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?

Share this post


Link to post
Share on other sites
newb_powa'

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)

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
FireLord

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

Share this post


Link to post
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
Sign in to follow this  

×