Sign in to follow this  
Followers 0
beiqi

how can make a control losing the focus?

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Sorry, i cant help you so blindly

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

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  
Followers 0