How to use Sendkeys without loosing focus?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello everyone,
I would like to write a little vbs script that I can put in the launch bar,
and
that will send my email and password to a certain ie page/s (saving me to
type it every time). The only problem is that when I click on the icon
in the launch bar, the focus of my ie window will be lost and therefore
the keys will not get there. Is there anything I can do in script to work
around this problem?
 
Hello everyone,
I would like to write a little vbs script that I can put in the launch bar,
and
that will send my email and password to a certain ie page/s (saving me to
type it every time). The only problem is that when I click on the icon
in the launch bar, the focus of my ie window will be lost and therefore
the keys will not get there. Is there anything I can do in script to work
around this problem?


See the script in tip 7066 in the 'Tips & Tricks' at http://www.jsiinc.com and
adapt it.



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
~ said:
o.k. I found it, i.e. the secret to bring the app back to focus is

Wshshell.AppActivate

Hopefully it will work with Z-order of windows, I shall try it now.

Hi

If you want to use something that is somewhat more robust than AppActivate,
take a look at AutoItX's windows handling methods (alternatively AutoIt):

http://groups.google.com/[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top