Jump to content

CTRL key stays down despite a Send("{LCTRL up}")!


Akshay07
 Share

Recommended Posts

Hello all,

I am having trouble with the control of the CTRL key!!!

In my script, I have at some point

Send ( "{LCTRL down}" )

and it works great. All the subsequent actions shows that my left CRTL key is being held down, that is perfect.

The last line of my script is

Send ( "{LCTRL up}" )

and this does not work!!! I have to press manually the left CTRL key to get back my keyboad to normal, after the script has ended.

This is 100% reproducible. The script is an small one, no call to any function or anything like that. It is running the lines one by one and then exit.

Any idea what is wrong?

Link to comment
Share on other sites

No it doesn't, but I think I have a good idea of what is wrong (doesn't mean that I have a solution ;))

When I send this command, the focus is on an image embeded in an excel spreadsheet.

I tried to move the focus to another cell before sending the Send("{LCTRL up}") command, without success.

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...