Send Keys Doesn't Send Command

  • We use proprietary software to connect to an oracle database. The proprietary software has its own login form. I connect to 4 or 5 different databases randomly throughout the day. I wrote a script that I thought would alleviate my login woes but it doesn't work. The login, password, and database info get sent to the form but they all end up on the login line. Instead of the tab character being sent, I get a Beep generated for each line of code that is supposed to send the tab key code. My code is below and is stored in a *.vbs file. Any suggestions?


  • Re: Send Keys Tab Key Generates Beep But Doesn't Send Command


    Sendkeys is not reliable.


    I don't think this should be in the Technical Issues Forum.

  • Re: Send Keys Tab Key Generates Beep But Doesn't Send Command


    I almost put it in this forum but since it's all Script and in a *.vbs file I opted otherwise. I'll know for next time, though.


    As for the problem, is there a better way to send the login information to the login form? Can anyone think of why the tab key works on the form when I physically hit it but it only produces a "Beep" (from the MoBo, not the sound card) when I send it programatically?

  • Re: Send Keys Tab Key Generates Beep But Doesn't Send Command


    Completely grasping a straws here...but you could try to sendkeys a shift + tab to see if, by chance, that will index you to the bottom entry.


    Good luck

  • Re: Send Keys Doesn't Send Command


    I've tried both of those. The last line in the code is supposed to activate the enter key for me but the sent tab key never gets the focus set on the enter button. Since the focus stays on the login box, the enter key isn't cycling through the z order for me either. Such a pain too. I just got access to two more databases this morning...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!