Jump to content

Clcik a Tab


Simpuhl
 Share

Recommended Posts

Nm I figured it out...

I am using:

#include <GuiTab.au3>
Dim $ConfigWindowTitle = "Sound"
Run("control mmsys.cpl") 

WinWaitActive($ConfigWindowTitle)

$hWnd_Tab = ControlGetHandle("Sound", "", "SysTabControl321")
_GUICtrlTab_SwitchNext($hWnd_Tab)

Func _GUICtrlTab_SwitchNext($hWnd)
    Local $iItems_Count = _GUICtrlTab_GetItemCount($hWnd)
    Local $iCurrent_TabIndex = _GUICtrlTab_GetCurSel($hWnd)
    Local $iNext_TabIndex = $iCurrent_TabIndex
    
    Switch $iCurrent_TabIndex
        Case 0 To $iItems_Count-2
            $iNext_TabIndex += 1
        Case Else
            $iNext_TabIndex = 0
    EndSwitch
    
    _GUICtrlTab_SetCurSel($hWnd, $iNext_TabIndex)
EndFunc
Link to comment
Share on other sites

EDIT: I just realized that this topic should be in General Help, not Example Scripts.

Heh, I didn't even look at that, came from "Recent Topics Added"... I have sent a report.

@Simpuhl

Get new glasses, you must be blind.

This is not a general support forum!

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