DavidFigueroa Posted January 27, 2018 Share Posted January 27, 2018 The cmdlets for AutoItX really need to have the proper help built in. I was able to partially puzzle out how to do a few things and use some google searches to track down a few items. However, the cmdlets really need to have the proper help show up when you use the help function (i.e. help get-au3winhandle -full). Right now it just extracts the correct help from the raw syntax, but the <# #> help section is just not there. I'm perfectly willing to help write it. Thanks, David F. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 28, 2018 Moderators Share Posted January 28, 2018 @DavidFigueroa do as you suggest and write up the help topics as you would want to read them. Submit them here; I am sure the community would appreciate your assistance, and provide feedback for you. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
DavidFigueroa Posted January 29, 2018 Author Share Posted January 29, 2018 I will definitely take a first stab at them.. the biggest issue is going to be interpreting the pieces of the cmdlets I don't understand.. :-) but everyone has to start somewhere. David F. Link to comment Share on other sites More sharing options...
DavidFigueroa Posted January 29, 2018 Author Share Posted January 29, 2018 (edited) Help for Close-AU3Win: <# .SYNOPSIS Closes a given window. .DESCRIPTION Closes a given window by locating the window by Title, or by Handle .PARAMETER Title The title of a window as defined by the text in the bar. Note: this parameter is case-sensitive. .PARAMETER WinHandle The numerical handle assigned by the operating system. .PARAMETER Force If the window will not gracefully exit, the Force switch tells AutoItX to forcibly terminate it. .EXAMPLE PS C:\> Close-AU3Win -Title 'Untitled - Notepad' 1 .EXAMPLE This example closes a copy of Notepad.exe that has some text typed into it, but has not been saved. Normally, Notepad would present a dialog requesting the user to save the document. Using the Force switch causes Notepad to exit without saving. PS C:\> Close-AU3Win -Title 'Untitled - Notepad' -Force 1 .EXAMPLE PS C:\> $WinHandle = Get-AU3WinHandle -Title 'Untitled - Notepad' PS C:\> $WinHandle 22682452 PS C:\> Close-AU3Handle = Close-AU3Win -WinHandle $WinHandle 1 .NOTES If multiple windows exist with the same title, Close-AU3Win will close the most recently opened window with that title. The function returns a 1 if the window is successfully closed, and returns a 0 if there is an error or the window is not found. .INPUTS [system.string] [system.intptr] .OUTPUTS [system.int32] #> Edited January 29, 2018 by DavidFigueroa Paste from VS Code looked terrible Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now