Results 1 to 2 of 2

Thread: Simulating typing

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    3
    Is there a way to simulate keystrokes, so that they will appear in another program? What I want to do is have a list of links that my browser visits on a regular basis, being controlled by a program running in the background. I'd need to know how to do special keystrokes (tab and enter) to do that, though.

    Thanks

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    You'll be wanting the SendKeys function then;

    Use it in conjunction with AppActivate to activate another (already running) program and then SendKeys to it; (look in Help on SendKeys for more information)

    eg;

    Code:
    AppActivate "Microsoft Word",True
    SendKeys "Line of Text{ENTER}",True
    Sendkeys "Another line of text{ENTER}",True

    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width