roni Posted August 4, 2011 Share Posted August 4, 2011 Hi! I'm totally new to AutoIt. I'm not even sure yet that AutoIt is my best option: What I need is a script that records clicking on a certain program's PLAY button. This script is to be used as executable by different users on different PCs (most of them have windows XP). The problem is that every user may have this program opened on a different location on his screen, or maybe even minimized to the bottom of his screen. How can the script find the specific program's window, look for the PLAY button and press it? Thanks a lot in advance, Roni Link to comment Share on other sites More sharing options...
wakillon Posted August 4, 2011 Share Posted August 4, 2011 (edited) Welcome to the forums ! Use AutoIt Window InfoTool for get window title and ControlIDand take a look at ControlClick Function Edited August 4, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
roni Posted August 4, 2011 Author Share Posted August 4, 2011 Welcome to the forums ! Use AutoIt Window InfoTool for get window title and ControlIDand take a look at ControlClick Function Thank you Wakillon!Since I'm just a beginning beginner, it would really help a lot if you might have any piece of code for reference?I would really really appreciate it...Anyway I'll start to try coding with using Window InfoTool and ControlClick as you suggested - thanks a lot :-) Link to comment Share on other sites More sharing options...
wakillon Posted August 4, 2011 Share Posted August 4, 2011 It could be something like that : ; You must Set $_Title, $_Text and ControlID. WinWait ( $_Title, $_Text ) WinActivate ( $_Title, $_Text ) ControlClick ( $_Title, $_Text, "Play" ) No need to record anything, no need to know window coordinates ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
somdcomputerguy Posted August 4, 2011 Share Posted August 4, 2011 @roni - Remember, just about every function in the Helpfile has example code with it. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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