stefan654 Posted December 23, 2013 Share Posted December 23, 2013 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 23, 2013 Developers Share Posted December 23, 2013 You are not specific enough to answer your question. What are you trying to automate? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
stefan654 Posted December 23, 2013 Author Share Posted December 23, 2013 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 23, 2013 Developers Share Posted December 23, 2013 (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 December 23, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
stefan654 Posted December 23, 2013 Author Share Posted December 23, 2013 (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 December 23, 2013 by stefan654 Link to comment Share on other sites More sharing options...
MilesAhead Posted December 23, 2013 Share Posted December 23, 2013 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 likeTarget: C:program filessome program.exe file1.type file2.type yaddayadda.type My Freeware Page Link to comment Share on other sites More sharing options...
JohnOne Posted December 23, 2013 Share Posted December 23, 2013 Pixels are pixels whatever the resolution, look at MouseCoordMode option. Opt <- help file If you really want to use mouse. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 23, 2013 Developers Share Posted December 23, 2013 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 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now