AutoIt-Interpreter icon indicating copy to clipboard operation
AutoIt-Interpreter copied to clipboard

Implement GUI methods

Open Unknown6656 opened this issue 5 years ago • 1 comments

Transferred from #9. Requires #19 and #21.

https://www.autoitscript.com/autoit3/docs/functions.htm

  • [x] AutoItWinGetTitle: Retrieves the title of the AutoIt window. (f5c2121e5d5eda3c085e6cfdd17d61dc59325af8)
  • [x] AutoItWinSetTitle: Changes the title of the AutoIt window. (f5c2121e5d5eda3c085e6cfdd17d61dc59325af8)
  • [ ] Break: Enables or disables the users' ability to exit a script from the tray icon menu.
  • [x] ClipGet: Retrieves text from the clipboard. (3f27c70a1eb96c8804bb4b3b5f96b496b2a97861)
  • [x] ClipPut: Writes text to the clipboard. (f5c2121e5d5eda3c085e6cfdd17d61dc59325af8, 3f27c70a1eb96c8804bb4b3b5f96b496b2a97861)
  • [ ] ControlClick: Sends a mouse click command to a given control.
  • [ ] ControlCommand: Sends a command to a control.
  • [ ] ControlDisable: Disables or "grays-out" a control.
  • [ ] ControlEnable: Enables a "grayed-out" control.
  • [ ] ControlFocus: Sets input focus to a given control on a window.
  • [ ] ControlGetFocus: Returns the ControlRef# of the control that has keyboard focus within a specified window.
  • [ ] ControlGetHandle: Retrieves the internal handle of a control.
  • [ ] ControlGetPos: Retrieves the position and size of a control relative to its window.
  • [ ] ControlGetText: Retrieves text from a control.
  • [ ] ControlHide: Hides a control.
  • [ ] ControlListView: Sends a command to a ListView32 control.
  • [ ] ControlMove: Moves a control within a window.
  • [ ] ControlSend: Sends a string of characters to a control.
  • [ ] ControlSetText: Sets text of a control.
  • [ ] ControlShow: Shows a control that was hidden.
  • [ ] ControlTreeView: Sends a command to a TreeView32 control.
  • [x] FileOpenDialog: Initiates a Open File Dialog. (6f062930349006074debdd03e3a4e8617272e10e)
  • [x] FileSaveDialog: Initiates a Save File Dialog. (6f062930349006074debdd03e3a4e8617272e10e)
  • [x] FileSelectFolder: Initiates a Browse For Folder dialog. (6f062930349006074debdd03e3a4e8617272e10e)
  • [x] GUICreate: Create a GUI window. (7158221b38f880ac423d4fb13068ecaaa70464e5)
  • [ ] GUICtrlCreateAvi: Creates an AVI video control for the GUI.
  • [ ] GUICtrlCreateButton: Creates a Button control for the GUI.
  • [ ] GUICtrlCreateCheckbox: Creates a Checkbox control for the GUI.
  • [ ] GUICtrlCreateCombo: Creates a ComboBox control for the GUI.
  • [ ] GUICtrlCreateContextMenu: Creates a context menu for a control or entire GUI window.
  • [ ] GUICtrlCreateDate: Creates a date control for the GUI.
  • [ ] GUICtrlCreateDummy: Creates a Dummy control for the GUI.
  • [ ] GUICtrlCreateEdit: Creates an Edit control for the GUI.
  • [ ] GUICtrlCreateGraphic: Creates a Graphic control for the GUI.
  • [ ] GUICtrlCreateGroup: Creates a Group control for the GUI.
  • [ ] GUICtrlCreateIcon: Creates an Icon control for the GUI.
  • [ ] GUICtrlCreateInput: Creates an Input control for the GUI.
  • [ ] GUICtrlCreateLabel: Creates a static Label control for the GUI.
  • [ ] GUICtrlCreateList: Creates a List control for the GUI.
  • [ ] GUICtrlCreateListView: Creates a ListView control for the GUI.
  • [ ] GUICtrlCreateListViewItem: Creates a ListView item.
  • [ ] GUICtrlCreateMenu: Creates a Menu control for the GUI.
  • [ ] GUICtrlCreateMenuItem: Creates a MenuItem control for the GUI.
  • [ ] GUICtrlCreateMonthCal: Creates a month calendar control for the GUI.
  • [ ] GUICtrlCreateObj: Creates an ActiveX control in the GUI.
  • [ ] GUICtrlCreatePic: Creates a Picture control for the GUI.
  • [ ] GUICtrlCreateProgress: Creates a Progress control for the GUI.
  • [ ] GUICtrlCreateRadio: Creates a Radio button control for the GUI.
  • [ ] GUICtrlCreateSlider: Creates a Slider control for the GUI.
  • [ ] GUICtrlCreateTab: Creates a Tab control for the GUI.
  • [ ] GUICtrlCreateTabItem: Creates a TabItem control within an existing tab control in the GUI.
  • [ ] GUICtrlCreateTreeView: Creates a TreeView control for the GUI.
  • [ ] GUICtrlCreateTreeViewItem: Creates a TreeViewItem control for the GUI.
  • [ ] GUICtrlCreateUpdown: Creates an UpDown control for the GUI.
  • [ ] GUICtrlDelete: Deletes a control.
  • [ ] GUICtrlGetHandle: Returns the handle for a control and some special (item) handles (Menu, ContextMenu, TreeViewItem).
  • [ ] GUICtrlGetState: Gets the current state of a control.
  • [ ] GUICtrlRead: Read state or data of a control.
  • [ ] GUICtrlRecvMsg: Send a message to a control and retrieve information in lParam.
  • [ ] GUICtrlRegisterListViewSort: Register a user defined function for an internal listview sorting callback function.
  • [ ] GUICtrlSendMsg: Send a message to a control.
  • [ ] GUICtrlSendToDummy: Sends a message to a Dummy control.
  • [ ] GUICtrlSetBkColor: Sets the background color of a control.
  • [ ] GUICtrlSetColor: Sets the text color of a control.
  • [ ] GUICtrlSetCursor: Sets the mouse cursor icon for a particular control.
  • [ ] GUICtrlSetData: Modifies the data for a control.
  • [ ] GUICtrlSetDefBkColor: Sets the default background color of all the controls of the GUI window.
  • [ ] GUICtrlSetDefColor: Sets the default text color of all the controls of the GUI window.
  • [ ] GUICtrlSetFont: Sets the font for a control.
  • [ ] GUICtrlSetGraphic: Modifies the data for a control.
  • [ ] GUICtrlSetImage: Sets the bitmap or icon image to use for a control.
  • [ ] GUICtrlSetLimit: Limits the number of characters/pixels for a control.
  • [ ] GUICtrlSetOnEvent: Defines a user-defined function to be called when a control is clicked.
  • [ ] GUICtrlSetPos: Changes the position of a control within the GUI window.
  • [ ] GUICtrlSetResizing: Defines the resizing method used by a control.
  • [ ] GUICtrlSetState: Changes the state of a control.
  • [ ] GUICtrlSetStyle: Changes the style of a control.
  • [ ] GUICtrlSetTip: Sets the tip text associated with a control.
  • [ ] GUIDelete: Deletes a GUI window and all controls that it contains.
  • [ ] GUIGetCursorInfo: Gets the mouse cursor position relative to GUI window.
  • [ ] GUIGetMsg: Polls the GUI to see if any events have occurred.
  • [ ] GUIGetStyle: Retrieves the styles of a GUI window.
  • [ ] GUIRegisterMsg: Register a user defined function for a known Windows Message ID (WM_MSG).
  • [ ] GUISetAccelerators: Sets the accelerator table to be used in a GUI window.
  • [ ] GUISetBkColor: Sets the background color of the GUI window.
  • [ ] GUISetCoord: Sets absolute coordinates for the next control.
  • [ ] GUISetCursor: Sets the mouse cursor icon for a GUI window.
  • [ ] GUISetFont: Sets the default font for a GUI window.
  • [ ] GUISetHelp: Sets an executable file that will be run when F1 is pressed.
  • [ ] GUISetIcon: Sets the icon used in a GUI window.
  • [ ] GUISetOnEvent: Defines a user function to be called when a system button is clicked.
  • [ ] GUISetState: Changes the state of a GUI window.
  • [ ] GUISetStyle: Changes the styles of a GUI window.
  • [ ] GUIStartGroup: Defines that any subsequent controls that are created will be "grouped" together.
  • [ ] GUISwitch: Switches the current window used for GUI functions.
  • [ ] HotKeySet: Sets a hotkey that calls a user function.
  • [x] HWnd: Converts an expression into an HWND handle. (7d902885828e2bf8363df7386dc1143afcdc7db0)
  • [ ] InputBox: Displays an input box to ask the user to enter a string.
  • [x] IsHWnd: Checks if a variable's base type is a pointer and window handle. (7d902885828e2bf8363df7386dc1143afcdc7db0)
  • [x] IsPtr: Checks if a variable's base type is a pointer. (7d902885828e2bf8363df7386dc1143afcdc7db0)
  • [ ] MouseClick: Perform a mouse click operation.
  • [ ] MouseClickDrag: Perform a mouse click and drag operation.
  • [ ] MouseDown: Perform a mouse down event at the current mouse position.
  • [ ] MouseGetCursor: Returns the cursor ID Number for the current Mouse Cursor.
  • [ ] MouseGetPos: Retrieves the current position of the mouse cursor.
  • [ ] MouseMove: Moves the mouse pointer.
  • [ ] MouseUp: Perform a mouse up event at the current mouse position.
  • [ ] MouseWheel: Moves the mouse wheel up or down.
  • [x] MsgBox: Displays a simple message box with optional timeout. (40a374f5b6c9cdab477933bb2beb8048e5a5a3ce)
  • [ ] PixelChecksum: Generates a checksum for a region of pixels.
  • [ ] PixelGetColor: Returns a pixel color according to x,y pixel coordinates.
  • [ ] PixelSearch: Searches a rectangle of pixels for the pixel color provided.
  • [ ] ProgressOff: Turns Progress window off.
  • [ ] ProgressOn: Creates a customizable progress bar window.
  • [ ] ProgressSet: Sets the position and/or text of a previously created Progress bar window.
  • [x] Ptr: Converts an expression into a pointer variant. (7d902885828e2bf8363df7386dc1143afcdc7db0)
  • [ ] Send: Sends simulated keystrokes to the active window.
  • [ ] SendKeepActive: Attempts to keep a specified window active during Send().
  • [ ] SplashImageOn: Creates a customizable image popup window.
  • [ ] SplashOff: Turns SplashText or SplashImage off.
  • [ ] SplashTextOn: Creates a customizable text popup window.
  • [ ] ToolTip: Creates a tooltip anywhere on the screen.
  • [ ] TrayCreateItem: Creates a menuitem control for the tray.
  • [ ] TrayCreateMenu: Creates a menu control for the tray menu.
  • [ ] TrayGetMsg: Polls the tray to see if any events have occurred.
  • [ ] TrayItemDelete: Deletes a menu/item control from the tray menu.
  • [ ] TrayItemGetHandle: Returns the handle for a tray menu(item).
  • [ ] TrayItemGetState: Gets the current state of a control.
  • [ ] TrayItemGetText: Gets the itemtext of a tray menu/item control.
  • [ ] TrayItemSetOnEvent: Defines a user-defined function to be called when a tray item is clicked.
  • [ ] TrayItemSetState: Sets the state of a tray menu/item control.
  • [ ] TrayItemSetText: Sets the itemtext of a tray menu/item control.
  • [ ] TraySetClick: Sets the clickmode of the tray icon - what mouseclicks will display the tray menu.
  • [ ] TraySetIcon: Loads/Sets a specified tray icon.
  • [ ] TraySetOnEvent: Defines a user function to be called when a special tray action happens.
  • [ ] TraySetPauseIcon: Loads/Sets a specified tray pause icon.
  • [ ] TraySetState: Sets the state of the tray icon.
  • [ ] TraySetToolTip: (Re)Sets the tooltip text for the tray icon.
  • [ ] TrayTip: Displays a balloon tip from the AutoIt Icon.
  • [ ] WinActivate: Activates (gives focus to) a window.
  • [ ] WinActive: Checks to see if a specified window exists and is currently active.
  • [ ] WinClose: Closes a window.
  • [ ] WinExists: Checks to see if a specified window exists.
  • [ ] WinFlash: Flashes a window in the taskbar.
  • [ ] WinGetCaretPos: Returns the coordinates of the caret in the foreground window.
  • [ ] WinGetClassList: Retrieves the classes from a window.
  • [ ] WinGetClientSize: Retrieves the size of a given window's client area.
  • [ ] WinGetHandle: Retrieves the internal handle of a window.
  • [ ] WinGetPos: Retrieves the position and size of a given window.
  • [ ] WinGetProcess: Retrieves the Process ID (PID) associated with a window.
  • [ ] WinGetState: Retrieves the state of a given window.
  • [ ] WinGetText: Retrieves the text from a window.
  • [ ] WinGetTitle: Retrieves the full title from a window.
  • [ ] WinKill: Forces a window to close.
  • [ ] WinList: Retrieves a list of windows.
  • [ ] WinMenuSelectItem: Invokes a menu item of a window.
  • [ ] WinMinimizeAll: Minimizes all windows.
  • [ ] WinMinimizeAllUndo: Undoes a previous WinMinimizeAll function.
  • [ ] WinMove: Moves and/or resizes a window.
  • [ ] WinSetOnTop: Change a window's "Always On Top" attribute.
  • [ ] WinSetState: Shows, hides, minimizes, maximizes, or restores a window.
  • [ ] WinSetTitle: Changes the title of a window.
  • [ ] WinSetTrans: Sets the transparency of a window.
  • [ ] WinWait: Pauses execution of the script until the requested window exists.
  • [ ] WinWaitActive: Pauses execution of the script until the requested window is active.
  • [ ] WinWaitClose: Pauses execution of the script until the requested window does not exist.
  • [ ] WinWaitNotActive: Pauses execution of the script until the requested window is not active.

Unknown6656 avatar Jul 26 '20 15:07 Unknown6656

Started adding some of these methods in https://github.com/Unknown6656/AutoIt-Interpreter/pull/187

MamiyaOtaru avatar Mar 21 '24 00:03 MamiyaOtaru