Simulating Pressed Keys

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dudeishfish
    New Member
    • Nov 2007
    • 11

    #1

    Simulating Pressed Keys

    I do not know how to even start with something like this. How would you make the computer think you are pressing certain keys without the user actually pressing them?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by dudeishfish
    I do not know how to even start with something like this. How would you make the computer think you are pressing certain keys without the user actually pressing them?
    You could have a look at the java.awt.Robot class but I'm about sure that
    you don't want to go there. Why do you want to mimic those key presses?

    kind regards,

    Jos

    Comment

    • dudeishfish
      New Member
      • Nov 2007
      • 11

      #3
      I took a look on the Java Documentation, and it looks like awt.robot is no longer in use. I want to make this program to type, without typing.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by dudeishfish
        I took a look on the Java Documentation, and it looks like awt.robot is no longer in use. I want to make this program to type, without typing.
        Where did you read that the java.awt.Robot class is 'no longer in use'?

        kind regards,

        Jos

        Comment

        • dudeishfish
          New Member
          • Nov 2007
          • 11

          #5
          In the Java documentation. It wasn't there.

          Comment

          • JosAH
            Recognized Expert MVP
            • Mar 2007
            • 11453

            #6
            Originally posted by dudeishfish
            In the Java documentation. It wasn't there.
            I don't understand this: you found it in the documentation pages but it wasn't there?

            kind regards,

            Jos

            Comment

            • dudeishfish
              New Member
              • Nov 2007
              • 11

              #7
              No, awt.Robot was NOT in the documentation. I searched, and it was NOT there

              Comment

              • JosAH
                Recognized Expert MVP
                • Mar 2007
                • 11453

                #8
                Originally posted by dudeishfish
                No, awt.Robot was NOT in the documentation. I searched, and it was NOT there
                Have a look at java.awt.Robot as I wrote before.

                kind regards,

                Jos

                Comment

                • dudeishfish
                  New Member
                  • Nov 2007
                  • 11

                  #9
                  Wait, I found it. Thanks.
                  That was just what I needed.

                  Comment

                  Working...