Sign in to follow this  
Followers 0
t0ddie

put focus on a tab

4 posts in this topic

$tab2 = GUICtrlCreateTabItem("  Progress    ")
GUICtrlSetState($tab2,$GUI_FOCUS)

this didnt work

is it possible?


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites



bump.

i would rather not have to click on the tab to put it into focus.

anyone?


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

i would rather not have to click on the tab to put it into focus.

anyone?

If the tabs have Alt key shortcuts you can Send("!f") or whatever.

Or I count how many tab key hits it takes to land the tabs and 3 tabs to the left so Send("{TAB 5}{LEFT 3}").

Share this post


Link to post
Share on other sites

You could get a handle to the tab and then ControlSend {LEFT} or {RIGHT} untill you land on the tab you want to be focused.

Example:

;Top of script
$TabHandle = ControlGetHandle(AutoItWinGetTitle(), "", 3)

;Anywhere needed to activate a tab
ControlSend($TabHandle, "", 3, "{LEFT}")

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