Automate clicks and typing on Windows apps without source code?

  • #1
kolleamm
477
44
I want to create a program that can type and click for me on any Windows app without access to the source code. This would save a lot of time doing boring and repetitive tasks. Is this possible?
 
Computer science news on Phys.org
  • #4
The Sendkeys utility is one way to send text to another Windows application. I have not used it in a long time. I remember(?) that you can use tasklist to get the application PID. Then set the focus to that PID. Then you need to use sendkeys to send tabs to move to the desired input box. Then use sendkeys to send the desired text. Some pause between sendkeys is needed.

PS. If the Windows app has command line options for what you want, that is probably much simpler.
 
  • Like
Likes kolleamm
  • #6
kolleamm said:
Lots of good info here, not sure which one to choose, some seem to require knowing class names but I'll check them out, thanks.
When I was doing a lot of this, I made a small C program that took a command-line text in argv and called sendkeys to send it to the Windows application. Then I used a Perl script to do all the work and logic of getting the PID, calling my C program, and pausing between steps.
 

Related to Automate clicks and typing on Windows apps without source code?

1. How can I automate clicks and typing on Windows apps without source code?

You can use automation tools such as AutoIt, SikuliX, or WinAppDriver to automate clicks and typing on Windows apps without access to the source code. These tools allow you to create scripts that simulate user interactions with the application.

2. Is it possible to automate clicks and typing on Windows apps without writing code?

Yes, it is possible to automate clicks and typing on Windows apps without writing code by using automation tools that provide a user-friendly interface for creating automation scripts. These tools often use a combination of visual recognition and scripting to automate interactions with Windows applications.

3. Can I automate clicks and typing on Windows apps that do not have built-in automation support?

Yes, you can automate clicks and typing on Windows apps that do not have built-in automation support using tools like AutoIt or SikuliX. These tools allow you to interact with any Windows application by simulating mouse clicks, keyboard inputs, and other user interactions.

4. Are there any limitations to automating clicks and typing on Windows apps without source code?

While automation tools can be powerful, there are some limitations to automating clicks and typing on Windows apps without access to the source code. For example, some applications may have complex user interfaces that are difficult to automate, or they may use custom controls that are not easily recognized by automation tools.

5. How can I ensure that my automated clicks and typing on Windows apps are reliable?

To ensure that your automated clicks and typing on Windows apps are reliable, it is important to thoroughly test your automation scripts on different devices and configurations. You should also consider error handling and recovery mechanisms in your scripts to handle unexpected situations that may arise during automation.

Similar threads

  • Computing and Technology
Replies
29
Views
315
  • Computing and Technology
Replies
7
Views
833
  • Computing and Technology
Replies
4
Views
2K
Replies
10
Views
218
  • Computing and Technology
Replies
3
Views
121
  • Computing and Technology
2
Replies
36
Views
1K
Replies
7
Views
625
Replies
38
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
822
  • Computing and Technology
Replies
26
Views
3K
Back
Top