Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any Control ids functions/features?
#1
Are there any functions/features in QM that I can use similar to control ids eg. ControlEnable, ControlDisable,ControlFocus,ControlHide,ControlShow..etc use in autoit?

Code:
Copy      Help
Example()

Func Example()
    ; Run Notepad
    Run("notepad.exe")

    ; Wait 10 seconds for the Notepad window to appear.
    Local $hWnd = WinWait("[CLASS:Notepad]", "", 10)

    ; Disable the edit control of Notepad using the handle returned by WinWait.
    ControlDisable($hWnd, "", "Edit1")

    ; Wait for 2 seconds.
    Sleep(2000)

    ; Enable the edit control of Notepad using the handle returned by WinWait.
    ControlEnable($hWnd, "", "Edit1")

    ; Wait for 2 seconds.
    Sleep(2000)

    ; Close the Notepad window using the handle returned by WinWait.
    WinClose($hWnd)
EndFunc   ;==>Example
#2
Look in floating toolbar -> Windows, controls -> Window/control actions.

Controls are windows. Most window actions work with controls.


Forum Jump:


Users browsing this thread: 1 Guest(s)