KubaP Posted September 1, 2008 Posted September 1, 2008 (edited) I have a problem – I cannot click on a button which is situated on a toolbar. Normally I use function like ControlClick but one of the parameter is on which the AutoIt should click – I know that button situated on TToolBar1 is named TToolButton1 but I know that because I have codes of program. AutoIt Window Info. see only the TToolBar1 – do not see any of TToolButtons situated on that TToolBar. So how can I click on a TToolButton? (Off course I do not wont to use MouseClick – because the position of controls can change in time). Edited September 1, 2008 by KubaP
Andreik Posted September 1, 2008 Posted September 1, 2008 I have a problem I cannot click on a button which is situated on a toolbar. Normally I use function like ControlClick but one of the parameter is on which the AutoIt should click I now that button situated on TToolBar1 is named TToolButton1 but I know that because I have codes of program. AutoIt Window Info. see only the TToolBar1 do not see any of TToolButtons situated on that TToolBar. So how can I click on a TToolButton? (Off course I do not wont to use MouseClick because the position of controls can change in time). Try ControlClick ("TITLE","","[CLASSNN:TToolButton1]") Change TITLE with your application title.
BrettF Posted September 1, 2008 Posted September 1, 2008 Have you checked out the AutoIt Window tool? It is a tool the makes automation much easier. You will find it by looking in "Start -> All Programs -> AutoIt" or pressing Ctrl + F6 in SciTe. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
KubaP Posted September 1, 2008 Author Posted September 1, 2008 Try ControlClick ("TITLE","","[CLASSNN:TToolButton1]") Change TITLE with your application title. Unfortunately it did not work I think that function ControlClick does not see that Button - AutoIt Window Info does not. Pleas help me - I have been thinking about the solution for a long time and have no other ideas.
KubaP Posted September 1, 2008 Author Posted September 1, 2008 (edited) Have you checked out the AutoIt Window tool? It is a tool the makes automation much easier. You will find it by looking in "Start -> All Programs -> AutoIt" or pressing Ctrl + F6 in SciTe. Cheers,BrettIn my version of SciTe (Version 1.76) I have "AutoIt Window Info" so I think it is = "AutoIt Window tool".Of course if you think that your version is better please tell me so - I will change on AutoIt window Tool. Edited September 1, 2008 by KubaP
sandyd Posted September 1, 2008 Posted September 1, 2008 From what I know, AutoIT can only control STANDARD windows controls. A TToolbar sound like it is a Delphi control and as such may not be a standard windows control. Anyone care to comment? ----[ SandyD ]---
KubaP Posted September 1, 2008 Author Posted September 1, 2008 From what I know, AutoIT can only control STANDARD windows controls. A TToolbar sound like it is a Delphi control and as such may not be a standard windows control.Anyone care to comment?Yes, it is Delphi control.So I will not be able to control it by any function in AutoIt?
DMEE Posted September 1, 2008 Posted September 1, 2008 I have some experience with delphi toolbars and generally I use a x,y location within the toolbar. Sometime ago I noticed that the autoit info window however did show the text of the button, save for example. This would imply that "[TEXT:Save]" should work. I didn't have time to test it. If you'll try, please let me know if it works In the beginning there was nothing and then even that exploded - anonymous
KubaP Posted September 1, 2008 Author Posted September 1, 2008 (edited) I have some experience with delphi toolbars and generally I use a x,y location within the toolbar. Sometime ago I noticed that the autoit info window however did show the text of the button, save for example. This would imply that "[TEXT:Save]" should work. I didn't have time to test it. If you'll try, please let me know if it works Hmm, I do not have any text on a ToolButtons When I use AutoIT Windows Info. I see something like in appendix named AutoITWindowInfo.JPG. Edited September 1, 2008 by KubaP
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