Jump to content

Search the Community

Showing results for tags 'alternate start stop button'.

  • 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. Just wanting an opinion or suggestions if there is an easier or better way to perform this Case. It essentially toggles 1 button as a start and stop button and performs actions based on the state of the button at the time of being clicked. Thanks for any additions/suggestions. Case $btnStart If _GUICtrlButton_GetText($btnStart) = "Start" And FileExists("C:\logdir") Then GUICtrlSetState($btnUpload, $GUI_DISABLE) GUICtrlSetData($lblDir, "Templates: " & $count[1] - 1) EndIf DirCreate("C:\logdir") If _GUICtrlButton_GetText($btnStart) = "Start" Then GUICtrlSetData($btnStart, "Stop") GUICtrlSetData($lblDesc, $descRun) GUICtrlSetState($lblDir, $GUI_SHOW) GUICtrlSetState($btnScan, $GUI_ENABLE) Else GUICtrlSetData($btnStart, "Start") GUICtrlSetState($btnUpload, $GUI_ENABLE) GUICtrlSetData($lblDesc, $descStop) If $count = 0 Then GUICtrlSetState($btnUpload, $GUI_DISABLE) GUICtrlSetState($btnScan, $GUI_DISABLE) GUICtrlSetData($lblDesc, @CR & "No templates have been collected, please press the Start button and try again") Else GUICtrlSetState($btnScan, $GUI_DISABLE) GUICtrlSetData($lblDir, "Templates: " & $count[1] - 1) EndIf Attachment() EndIf
×
×
  • Create New...