TylerK

Send keys not working in script

4 posts in this topic

#1 ·  Posted

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



#2 ·  Posted

21 minutes ago, TylerK said:

Send("{^E}");

 

Try Send("^E")

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted

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