Jump to content
Sign in to follow this  
DavidFigueroa

AutoItX cmdlet helpl

Recommended Posts

DavidFigueroa

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. 

Share this post


Link to post
Share on other sites
JLogan3o13

@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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
DavidFigueroa

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.

Share this post


Link to post
Share on other sites
DavidFigueroa

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 by DavidFigueroa
Paste from VS Code looked terrible

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×