Results 1 to 23 of 23

Thread: Fixed code, still need help tho... SIMULATE REAL KEYBOARD COMMANDS

Threaded View

  1. #1

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Fixed code, still need help tho... SIMULATE REAL KEYBOARD COMMANDS

    Ok, i basically want to send the contents of Text1 to the program defined as Appnum the sending will be done by a timer (every 5 minutes...) where in my code have i gone wrong ?

    VB Code:
    1. Private Appnum As Long
    2. Private Sub Command1_Click()
    3. Appnum = Shell("C:\WINDOWS\notepad.exe")
    4. Timer2.Enabled = True
    5. End Sub
    6.  
    7. Private Sub Timer2_Timer()
    8. Timer1.Enabled = True
    9. Timer2.Enabled = False
    10. End Sub
    11.  
    12. Private Sub Timer1_Timer()
    13. AppActivate Appnum
    14. SendKeys (Text1.Text)
    15. End Sub
    Last edited by thegreatone; Dec 25th, 2004 at 05:01 PM.
    Zeegnahtuer?

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