Click here to Skip to main content
15,883,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all experts,
Is there a way to put value into 3rd party Windows desktop application textbox and perform click on the specific button. from my past experience. I know vb 6.0 able to do that provided the 3rd party application is developed using Microsoft development tool as well... But can it be possible to make it work on Visual Studio 2016?

What I have tried:

Previously with vb6, I tried to grab processID from application name. With the PID, I can extract all controls from the application then set value.
But for VB.Net, I tried to search all over the internet that I know... no hope
Posted
Updated 14-May-18 19:40pm
v2

If it's not WPF, you can get the ids of the control windows and send them messages. If it's WPF, you can't do anything. But you'd need to find the window ids yourself.
 
Share this answer
 
Comments
Richard Deeming 15-May-18 12:48pm    
If it's WPF, you can probably use UI automation:
UI Automation Overview | Microsoft Docs[^]
I am not sure if the 3rd party application is a WPF. Any example I can refer to?
 
Share this answer
 
Comments
Richard Deeming 15-May-18 12:47pm    
If you want to reply to a solution, click the "Have a Question or Comment?" button under that solution.

DO NOT post your reply as a new "solution".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900