Jump to content

Search the Community

Showing results for tags 'button Instance'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I'm having some difficulty in controlling certain GUI button on my in-house application. I'm automating some clicking and read back of status from this button. I am able to ControlClick with it by providing the correct ClassnameNN from AU3Info. However, I noticed my in-house application keeps changing the INSTANCE of the same button. The TEXT of the button remains the same but INSTANCE show a different number every time the application is re-launched. I was thinking of using WinList and WinGetState to scan through all the buttons in the application to try find out the correct INSTANCE but it returns nothing. Is there any method to solve this issue? Func LC3_CrystalVoice_FX($mode) WinActivate("Audio Console") Local $ButtonTxt = ControlGetText("Audio Console", "", "Button32") If $mode = True And $ButtonTxt = "Turn on FX" Then ControlClick("Audio Console", "", "Button32") ElseIf $mode = False And $ButtonTxt = "Turn on FX" Then ;Do Nothing ElseIf $mode = True And $ButtonTxt = "Turn off FX" Then ;Do Nothing ElseIf $mode = False And $ButtonTxt = "Turn off FX" Then ControlClick("Audio Console", "", "Button32") Else MsgBox(48, "CrystalVoice_FX", "Invalid ControlID, please restart application") Exit EndIf EndFunc AU3Info for the same button: >>>> Control <<<< Class: Button Instance: 35 ClassnameNN: Button35 Name: Advanced (Class): [CLASS:Button; INSTANCE:35] ID: 1000 Text: Turn on FX Position: 718, 166 Size: 154, 25 ControlClick Coords: 41, 8 Style: 0x5001010B ExStyle: 0x00000004 Handle: 0x00000000001204F6 >>>> Control <<<< Class: Button Instance: 32 ClassnameNN: Button32 Name: Advanced (Class): [CLASS:Button; INSTANCE:32] ID: 1000 Text: Turn on FX Position: 718, 166 Size: 154, 25 ControlClick Coords: 41, 8 Style: 0x5001010B ExStyle: 0x00000004 Handle: 0x00000000001A034C
×
×
  • Create New...