Sign in to follow this  
Followers 0
stefan654

reading values of a window

8 posts in this topic

hello everyone,

i'm trying to command a programm to click on a certain thing in my client window.

It can easily be done with "mouseclick" option.

All though this has one big downside: it won't work on every computer as coordinates differ by resolution.

So my question is: how can i let autoit "read" a word and click on it.

Example:

I got a client opened, and the program should click on the "file" tab.

Any ideas? hope you can help me out thanks.

Share this post


Link to post
Share on other sites



i got this client (an open window) for my work. Everytime i start it up i need do do several stuff over and over again (for example: i need to open like 9-10 files all the time). I thought it would be very helpfull for me (and my coworker) if autoit could do this while my pc is starting up.

So:

The bot should read & click on "file" (you also got this tab in excel and other programs) and then select "open". But without using the "mouseclick" function?

I hope this clears things up.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

i hope this clears things up.

 

Not really as there is nothing which is exact in your request. Use au3info to check what information/controls are available on the applications you talk about.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

nothing exact? please explain the part which is not clear to you:

i'll simplify it even more for you.

You got an excel window, with all sorts of tabs "file", "design",...

I want autoit to click on the tab "file".

how do i let it execute such a command?

Edited by stefan654

Share this post


Link to post
Share on other sites

If it's the same set of files all the time it may be easier just to use a macro record/playback utility.

Or if the program will accept filenames on the command line just make a shortcut like

Target: C:program filessome program.exe file1.type file2.type yaddayadda.type

Share this post


Link to post
Share on other sites

nothing exact? please explain the part which is not clear to you:

i'll simplify it even more for you.

No need to feel not taken serious or under attack.

The reason I am asking exact details is that there are too many option available to give an answer without knowing which program you are trying to automate.

MouseClick() should really be your last resort function. First look at all ControlXXXX() command in case you can see the info of the controls you like to act upon...hence my comment to use au3info.

When it is about excel sheets, there could even be an option to use the Excel UDF's..

Understand?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  
Followers 0