Results 1 to 5 of 5

Thread: SendKeys does not work

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    SendKeys does not work

    I have thios app which tries to write two strings on two textboxes (on another app). I'm using Activate to switch to the other app, and sending the string I want, a TAB and the other string.

    The problem is that this won't work!! Only a few times worked correctly. Any ideas?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: SendKeys does not work

    i dont know if you have already tried this but i had a similar problem with sendkeys where it would work then wouldnt work, i just used the wait parameter on each one.

    casey.

  3. #3

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: SendKeys does not work

    Quote Originally Posted by vbasicgirl
    i dont know if you have already tried this but i had a similar problem with sendkeys where it would work then wouldnt work, i just used the wait parameter on each one.

    casey.
    I'm waiting a second between one sendkey and the other... and still does not work.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4
    Fanatic Member vbasicgirl's Avatar
    Join Date
    Jan 2004
    Location
    Manchester, UK
    Posts
    1,016

    Re: SendKeys does not work

    what are you using to wait that second, is it letting the sendkeys process the keys, i meant using the wait parameter of sendkeys.

    SendKeys "string", True

    casey.

  5. #5

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: SendKeys does not work

    Quote Originally Posted by vbasicgirl
    what are you using to wait that second, is it letting the sendkeys process the keys, i meant using the wait parameter of sendkeys.

    SendKeys "string", True

    casey.
    No, I was using SLEEP. But the Wait=True seems to work!! Thanks.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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