beiqi Posted November 24, 2005 Share Posted November 24, 2005 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 Link to comment Share on other sites More sharing options...
Valuater Posted November 24, 2005 Share Posted November 24, 2005 show us your sript... so we can better understand and help you 8) Link to comment Share on other sites More sharing options...
BigDod Posted November 24, 2005 Share Posted November 24, 2005 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!BoostpyYou 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 Link to comment Share on other sites More sharing options...
beiqi Posted November 24, 2005 Author Share Posted November 24, 2005 show us your sript... so we can better understand and help you8)Sorry, I have not attached the script, because1. I do not use the AutoIt-Basic directly, I call them from Python Script2. 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? Link to comment Share on other sites More sharing options...
Valuater Posted November 24, 2005 Share Posted November 24, 2005 Sorry, i cant help you so blindly 8) Link to comment Share on other sites More sharing options...
LxP Posted November 25, 2005 Share Posted November 25, 2005 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). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now