autoitles Posted July 12, 2010 Posted July 12, 2010 Hi, I have the following script: Run("C:\Program Files\VTSync\VTSync.exe") WinWaitActive ("VTSYNC") ControlClick ("VTSYNC", "","[CLASS:Button; INSTANCE:2]") VTSYNC is a program which has buttons. I interested in the one called "Placements" I am trying to have the script click on the Placements button. VTSYNC appears on my computer but the click on Placements doesn't work. I am using Autoit v3 Window's Placement which gave me the the class:button information above. I know I'm doing something wrong, so please help me out. I tried uploading the VTSYNC picture but it's greater than the 64K limit Thanks..
autoitles Posted July 12, 2010 Author Posted July 12, 2010 Hi, I have the following script: Run("C:\Program Files\VTSync\VTSync.exe") WinWaitActive ("VTSYNC") ControlClick ("VTSYNC", "","[CLASS:Button; INSTANCE:2]") VTSYNC is a program which has buttons. I interested in the one called "Placements" I am trying to have the script click on the Placements button. VTSYNC appears on my computer but the click on Placements doesn't work. I am using Autoit v3 Window's Placement which gave me the the class:button information above. I know I'm doing something wrong, so please help me out. I tried uploading the VTSYNC picture but it's greater than the 64K limit Thanks.. Here is the info from Autoit Window Info Tab Control Class Button Instance 4 ClassNN Button Advanced Mode [CLASS:Button; INSTANCE:4] ID 1147 Text Placements Position 11,200 Size 101,23 ControlClick Coords 93,11 Style 0x5001000B ExStyle 0x00000004 Handle 0x000F0488
jfcby Posted July 12, 2010 Posted July 12, 2010 Try... ControlClick ("VTSYNC", "","[CLASS:Button; INSTANCE:4]") or ControlClick ("VTSYNC", "","[ID:1147]") jfcby Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB ****
frp64 Posted July 14, 2010 Posted July 14, 2010 Hi, maybe that the title is bigger than "VTSYNC", I recommend you that add in your code, in the beginning, the next line:Opt("WinTitleMatchMode", 2)Regards
Bdog Posted April 14, 2016 Posted April 14, 2016 Hi, I am having the problem of checking or unchecking a box in the window below: The box Use Entire Page is the box I want to interact with. I have tried several variations of the ControlCommand function and have verified that the Export to PDF title is the title of the window. ControlCommand("Export to PDF","","[CLASS:Name; INSTANCE:'checkBoxUseEntirePage']",'Uncheck'); ControlCommand("Export to PDF","","[Name:checkBoxUseEntirePage]",'Uncheck'); ControlCommand("Export to PDF","","checkBoxUseEntirePage",'Uncheck'); I would really appreciate any help. I am really new to AutoIt, but have tried several web searches to find what I am doing wrong and am not sure on how to make it work. Thanks
Bdog Posted April 14, 2016 Posted April 14, 2016 I have also tried to use the Basic Control Info: ControlCommand("Export to PDF","","[Class:WindowsForms10.Window.8.app.0.2366e6e_r14_ad2; Instance:11]",'Uncheck');
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