Results 1 to 4 of 4

Thread: *** Send Keys - Help ***

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Posts
    16

    Question *** Send Keys - Help ***

    i am useing VB.Net, and i am trying to send key strokes to the system. this is what i'm useing:

    System.Windows.Forms.SendKeys.Send("j")

    i have also tried:

    System.Windows.Forms.SendKeys.SendWait("j")

    the problem i'm having is that some of the keys i want to send dont' actually get sent. instead i get a "beep" sound from the system.

    i thought the "beep" sound ment that i am sending too many keys at one time to the system. so i am sending keys one at a time with a delay function between each key. this still does not work. sometimes the keys get sent with no problem, then sometimes only half or a fragment of the keys get sent, or sometimes none at all.

    is there a more reliable way to send keys?

    thanks.

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    SendKeys.Send("{NUMLOCK}")

    Have a nice day

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2004
    Posts
    16
    thanks for the reply.

    i tried that code and i am still having the same problem.

    i will explain what my program does:

    my VB.NET program opens Internet Expolorer and fills in a form useing send keys.

    is there a method of sending keys that is more compatible with third party programs such as Internet Explorer?

    thanks again.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    If I'm not wrong , SendMessage API can send text or redirect text from other app windows(console or whatever) to textboxes or RTB . Search any API guide to make sure .

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