Jump to content
Sign in to follow this  
Simpuhl

Clcik a Tab

Recommended Posts

Simpuhl

Basically I am opening Windows Sound Manager

Run("control mmsys.cpl")

But then I am trying to get it to click the Recording tab, but I cannot figure out how.

Anybody have an idea?

Id really appreciate it

Share this post


Link to post
Share on other sites
Simpuhl

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

Share this post


Link to post
Share on other sites
Simpuhl

Windows 7 64bit

post-61264-0-70396700-1289875766_thumb.p

Share this post


Link to post
Share on other sites
AdmiralAlkex

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!

Share this post


Link to post
Share on other sites
Simpuhl

oops I am sorry, this was my first post and I was just so into what I was doing I didnt pay attention :graduated:

Can an admin plz move it?

Share this post


Link to post
Share on other sites
Simpuhl

oh crap ur right about control mmsys.cpl,@0,1 also.

Ill use that as its much simpler :graduated:

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  

×