Jump to content

AutoItX cmdlet helpl


DavidFigueroa
 Share

Recommended Posts

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

  • Moderators

@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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...