Automating Windows tasks with software that doesn't have an API?

madblacker

Regular Member
Joined
Nov 2, 2009
Messages
291
Reaction score
35
I'm wondering if anyone on here does anything like this, basically I want to automate some windows tasks but the software doesn't have an API so is there any other way to do this Besides using macros (i've used these before they are too messy, error prone cus one thing thats unexpected breaks it, you can't get any feedback from the program to account for errors, delays, etc)... I've been looking into packet sniffers that I think like packet sniff different layers of windows that maybe can get the data going from the GUI to the deepers "layer" of the OS but its kind of hard for me to follow along with some of the stuff I've read about this.. any info is appreciated
 
If I'm understanding you right, you want to hook into an existing piece of software that doesn't have any method of doing so.

If the software is MS Windows based, you can use VB and the Windows API to hook the GUI Window and send calls to it.

Back in the day, Pat or JKs API Spy was what everybody used for this.

http://patorjk.com/programming/tutorials/apispy.htm

The general gist of the technique is that you use the API spy to find the GUI Handle(the unique name of the window when it's loaded into memory), and from there you write a VB App that uses the existing Windows 32Bit API to make calls directly to that window. You can do stuff like click buttons, populate form data, etc.
 
Yeah... you got it, thats exactly what i want to do... thanks for the info this helps me a lot, I am going to hire some vb.bet programmers to try this
 
I'm always using AutoIt for stuff like this. It can handle gui, your keyboard, mouse and do everything you do, plus it's quite easy to learn if you will look on examples.
 
I'm always using AutoIt for stuff like this. It can handle gui, your keyboard, mouse and do everything you do, plus it's quite easy to learn if you will look on examples.
 
I'm always using AutoIt for stuff like this. It can handle gui, your keyboard, mouse and do everything you do, plus it's quite easy to learn if you will look on examples.
 
Back
Top