Jump to content
Sign in to follow this  
kjpolker

Screen ratio for clicking?

Recommended Posts

kjpolker

I was wondering how and if I would make a equation for a screen ratio if this is possible, this is so depending on the size of the window it knows where to click in it, so if I have Mozilla Firefox opened all the way my program clicks the search bar perfectly, but if it is windowed it will obviously change where the search input is. Well I was hoping for a way to have it read the window and put the dimensions through some sort of equation than it will always click where it needs to, is this possible?

Share this post


Link to post
Share on other sites
ame1011

If what you're trying to do takes place in a browser, clicking is almost never needed, you could do pretty much everything without having to click. Of course this requires that you use the IE.au3 udf and not Firefox.

One of the exceptions for this is flash of course. In this case I would recommend that you position and size their window with your script before you automate it.


[font="Impact"] I always thought dogs laid eggs, and I learned something today. [/font]

Share this post


Link to post
Share on other sites
Stilgar

You should try the FF.au3 to automate FireFox:

http://www.autoitscript.com/forum/index.php?showtopic=95595

Share this post


Link to post
Share on other sites
kjpolker

Well so far Firefox has nothing to do with the script, and I don't even have a script, but this idea came accross my head for no reason and I was just wondering if it could be done because it seems it would be a handy tool to know for future projects.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.