PDA

View Full Version : Automate other Applications from AMS


Worm
09-03-2003, 11:24 PM
Okay, this is kind of cool. In Visual Basic there is a function named SendKeys. You can use it to send keystrokes to the Window that currently has the focus. A little while ago, I wrote an app that did this to enter a PDFs password into AcroReader so that the PDF could be protected, yet be viewable from AMS. The issue was that I wrote it in VB, and we all know that VB needs its runtimes.

I'd mentioned that if anyone found it useful, I'd try to spin it in a DLL to get away from VB. I did have a couple requests, and so....

Here in all it's glory is my version of SendKeys
This will allow you to send keystrokes, and mouseclicks.
This doesn't necessarily do the same thing the PDF password app did, but it gives you the power to spin your own.

Keystrokes Sample and DLL (http://www.warmuskerken.com/ams/keystrokes.zip)

Corey
09-03-2003, 11:30 PM
Sooperkule. Ubernifty. Turbochill.

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

Crash_Davenport
09-04-2003, 10:26 AM
Worm, that is very cool!!

Crash D.

Bruce
09-08-2003, 01:32 PM
THX buddy!

Worm
09-09-2003, 07:57 PM
I've fixed a little problem with this DLL. You no longer need to pass the length of the string anymore. Makes it abit simpler.