PDA

View Full Version : A way to "fire" key strokes such as "ALT-F" from pre-scripted AMS code?



Protocol
01-03-2003, 04:23 PM
I'm looking to control a specific piece of software via a pre-scripted AMS XML code. Things like: "ALT-F" to open "File" then other various commands. I've created an interface that is completely user-defined and want to use those definitions to control a then-opened program. Did that make any sense? I'd prefer to not use Flash, but if it's the only way, I'd be open to incorporating some flash code into the AMS program. This is actually a little goody that I'm cooking up for you all and I hope to have it posted soon! If you can think of a way to do this, please reply to this post with some code ideas. Thanks in advance!

I need the following commands in a quick sequence:

(Down Arrow)
(Right Arrow)
(Down Arrow)
(Right Arrow)
(Down Arrow)
(Right Arrow)
(Down Arrow)
ALT-E
CONTROL-A
ALT-E
S
TAB
TAB
ALT-E
M
(Then add the text variable %ProjectName%)
ENTER
ALT-F
C
ENTER


It's an odd order, I know. But it should be pretty cool. Can this be done? Can AMS act as the user's hands to perform tedious repetitive tasks? If not, then can flash perform this function?


Protocol

Worm
01-06-2003, 11:05 AM
Are you trying to send these keystrokes to the AMS project or to another Window? If its another window, is it the active window?

My first thought is that you could use a custom DLL to so a "SendKeys". I've done some searches and have come across a couple sample apps that do this.

aragonit
03-17-2003, 06:43 PM
I use the 'Mouse and Key Recorder' for such (and FAAR more complicated) tasks.

Why would you invent the wheel again?

kpsmith
03-17-2003, 07:45 PM
Winbatch can do this I think? I never used it, but I've thought about it...

www.winbatch.com (http://www.winbatch.com)

Corey
03-17-2003, 09:18 PM
Honestly Shockwave is the best *I've seen* in terms of performance, i.e. how 'quick' can it capture the keys. Certainly it's pretty easy to do in Flash and would work well too. That's my 2 cents. (Canadian Funds)

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