AutoIt GUISetState Function

How to use the AutoIt GUISetState function.

1901 views

Edited: 2017-02-10 21:45

The AutoIt GUISetState function is used to display freshly created GUI windows, and to change the state of existing GUI windows.

Parameters

flag [optional]
  1. @SW_SHOW = Displays a previously hidden window (default)
  2. @SW_HIDE = Hide window
  3. @SW_MINIMIZE = Minimize window
  4. @SW_MAXIMIZE = Maximize window
  5. @SW_RESTORE = Undoes a window minimization
  6. @SW_DISABLE = Disables the window
  7. @SW_ENABLE = Enables the window
  8. @SW_LOCK = Lock the window to avoid repainting.
  9. @SW_UNLOCK = Unlock windows to allow painting.
winhandle [optional]The window handle as returned by WinGetHandle or GUICreate. Note. the window handle is not the same as a window title.

Links

  1. GUISetState - autoitscript.com

Tell us what you think:

  1. How to create a list of selectable items with AutoIt.
  2. Tutorial on how to make GUIs using the AutoIt scripting language.
  3. How to disable and enable AutoIt GUI elements using GUICtrlSetState.
  4. How to interrupt running functions and handle system events in AutoIt GUI scripting.
  5. Tutorial on how to add images to AutoIt GUIs while maintaining aspect ratio.

More in: AutoIt GUIs