Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A way to "fire" key strokes such as "ALT-F" from pre-scripted AMS code?

    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

    "White-colla-AMS-gangsta."

  • #2
    Re: A way to "fire" key strokes such as "ALT-F" from pre-scripted AMS code?

    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.

    Comment


    • #3
      Re: A way to "fire" key strokes such as "ALT-F" from pre-scripted AMS code?

      I use the 'Mouse and Key Recorder' for such (and FAAR more complicated) tasks.

      Why would you invent the wheel again?

      Comment


      • #4
        Re: A way to "fire" key strokes such as "ALT-F" from pre-scripted AMS code?

        Winbatch can do this I think? I never used it, but I've thought about it...

        www.winbatch.com

        Comment


        • #5
          Re: A way to "fire" key strokes such as "ALT-F" from pre-scripted AMS code?

          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

          Comment

          Working...
          X