Results 1 to 6 of 6

Thread: Automate 3rd Party Application

  1. #1

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    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
    Kanna

  2. #2

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    Re: Automate 3rd Party Application

    I believe the third party application is developed in VB only.
    Kanna

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  4. #4

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    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 ?
    Kanna

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  6. #6

    Thread Starter
    Hyperactive Member csKanna's Avatar
    Join Date
    Dec 2005
    Location
    Tech-Tips-Now.com
    Posts
    339

    Re: Automate 3rd Party Application

    Thanks. I will give a try and let you know my findings.

    Thanks
    Kanna

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width