Results 1 to 4 of 4

Thread: Windows NT and VB 'Sendkeys' function

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    2
    A user of an application I have written is experiencing problems. The application uses the 'Sendkeys' function to enter data into an Oracle Form from a comma delimited file.

    He is running windows NT. The problem occurs in the actual entry into the Oracle Form. Some of the 'Sendkeys' appear not to work and incorrect values are entered into some of the cells on the form. This ends up causing Oracle Errors due to validation in the various cells.

    All other users of the application (whether on windows NT machines or windows 95) have not experienced any problems.

    Any ideas? Could this be a Windows API issue? Could focus be shifting away from the oracle form for some reason.

    Any contributions gratefully accepted.

    Many thanks,
    Roger Eigenheer

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    I am using NT at work, and the only problems i have ever had with SendKeys is the focus issue. I have actually managed to crash the computer completley by sending keys when the focus was wrong.

    That would be my first line of enquiry.
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    2
    Cheers Iain,

    I think I have the focus issue covered for most computers, there are about 150users, 1/2 of whom are NT. I was just wondering if it's perhaps a DLL issue. Is there a certain DLL on his computer which may be shifting focus differently to the standard DLLs.

    Again, this has me stumped, all the standard DLLs ar there - with current versions etc.

    Anyone encountered something like this before.

    An leads at all greatly appreciated.

    Many thanks,

    Roger Eigenheer

  4. #4
    New Member
    Join Date
    May 2000
    Posts
    4

    Cool

    Hi, I wrote an app in VB to talk to another app using sendkeys and I had the same problem your describing. I tried everything I could think of. Sometimes it would work
    perfect and others times it would put wrong data in the fields. I got it working most of the time using delay's between each sendkey. I ended up scrapping the whole thing
    and I purchased WinBatch, I used their sendkeys function and
    never had any problems after that.

    The apps were running on NT.

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