Jump to content

Send keys not working in script


Recommended Posts

I'm using this script too try and send Control + E to an active window.

WinActivate ("Process Monitor - Sysinternals: www.sysinternals.com","");
Send("{^E}");

When I run the batch file, the correct window does become active, but the control + e command is not sent.  I'm not getting any errors in Autoit.  What am I missing or doing wrong?

Link to comment
Share on other sites

  • Developers
1 hour ago, TylerK said:

When I run the batch file, the correct window does become active,

TRy adding a short sleep between the WinActivate and Send as it could be you're sending the key before that window is actually active.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...