|
-
Jul 29th, 2008, 12:56 AM
#1
Thread Starter
Hyperactive Member
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
-
Jul 29th, 2008, 12:57 AM
#2
Thread Starter
Hyperactive Member
Re: Automate 3rd Party Application
I believe the third party application is developed in VB only.
-
Jul 29th, 2008, 01:37 AM
#3
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 29th, 2008, 01:40 AM
#4
Thread Starter
Hyperactive Member
Re: Automate 3rd Party Application
 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 ?
-
Jul 29th, 2008, 01:44 AM
#5
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 29th, 2008, 03:49 AM
#6
Thread Starter
Hyperactive Member
Re: Automate 3rd Party Application
Thanks. I will give a try and let you know my findings.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|