Jump to content

Recommended Posts

Posted

Hi,

one can focus to a control with ControlFocus. I am interesting the contra one, i.e. make a element lose the focus! How can I do that?

thanks in advance for any tips!

Boostpy

Posted

Hi,

one can focus to a control with ControlFocus. I am interesting the contra one, i.e. make a element lose the focus! How can I do that?

thanks in advance for any tips!

Boostpy

You could always use ControlFocus to give focus to a different control


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

show us your sript... so we can better understand and help you

8)

Sorry, I have not attached the script, because

1. I do not use the AutoIt-Basic directly, I call them from Python Script

2. the AutoIt do not see our custom control (grids), so I like to lose the focus at first and go a cell blindly, in order to move the cursor to the needed cell!

any Tips?

Posted

As BigDod suggested, you will need to ControlFocus() another control. This is because at any point in time a control must have focus (whether or not its window has focus).

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
×
×
  • Create New...