Jump to content
Sign in to follow this  
TylerK

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?

Share this post


Link to post
Share on other sites
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.
  :)

Share this post


Link to post
Share on other sites

Try running the script with Administrator Privs. ProcMon needs to run with admin privs, and the script needs to match. Ran into the same issue this morning.

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...