Automate 3rd Party Application
Hi,
I am trying to automate the third party application, Let's say "App A". I know how to use FindWindow, FindWindowEx to find windows and click on buttons etc.
I need couple of help:
a. The main window of "App A" application has many child windows most of them has same class and some of them have caption and some of them have no caption. So, How can I find the window which is needed for me ? (the other windows have same caption /class name)
b. I have a dtPicker control on that application window. I would like to set the desired date on it. not sure how to do it.
please help
Re: Automate 3rd Party Application
I believe the third party application is developed in VB only.
Re: Automate 3rd Party Application
You would have to use the GetDlgCtrlID to match the dlg id of the window/control you desire or EnumWindows to loop through the windows.
Re: Automate 3rd Party Application
Quote:
Originally Posted by RobDog888
You would have to use the GetDlgCtrlID to match the dlg id of the window/control you desire or EnumWindows to loop through the windows.
okay. thanks will try now. :)
and how can we change the text in dtpicker ?
Re: Automate 3rd Party Application
Havent tried it but probably sendmessage to the dtp with the date/time value and then another to send a notification change message.
Maybe something like DTN_USERSTRINGA or DTN_DATETIMECHANGE
Ps, when using Spy+= you will notice that it shows the DlgControlID which never changes and is like a serial number for the control/window. So if you enum or loop you can check the return to see if its id is the one you are looking for.
Re: Automate 3rd Party Application
Thanks. I will give a try and let you know my findings.
Thanks :)