Jump to content
JC_Aus

Finding Parameters for AutoItX.psd1

Recommended Posts

JC_Aus

I am just starting to use the Powershell interface AutoItX.psd1 and I thought that the following might help someone on the same path...

 The following site gave a basic introduction and a sample, but still did not have sufficient information for me:   https://www.autoitconsulting.com/site/scripting/autoit-cmdlets-for-windows-powershell/

Using my basic Powershell skills, I went into the Powershell ISE and typed 'Move-AU3Win into the command helper and then clicked 'Show Details' to get a list of parameters. I was greeted with a message ''No valid module file was found in any module directory". 

There is probably a valid Powershell reason why this is happening, but I wanted to start coding, and so I did the following

$a = get-command Move-AU3Win
$a.parametersets

Resulting in a list of parameters that I can use..

Parameter Name: X
    ParameterType = System.Int32
    Position = 2
    IsMandatory = True
    IsDynamic = False
    HelpMessage = 
    ValueFromPipeline = False
    ValueFromPipelineByPropertyName = False
    ValueFromRemainingArguments = False
    Aliases = {}
    Attributes =
  

  Parameter Name: Y
    ParameterType = System.Int32
    Position = 3
    IsMandatory = True
    IsDynamic = False
    HelpMessage = 
    ValueFromPipeline = False
    ValueFromPipelineByPropertyName = False
    ValueFromRemainingArguments = False
    Aliases = {}
    Attributes =
     

  Parameter Name: Width
    ParameterType = System.Int32
    Position = 4
    IsMandatory = False
    IsDynamic = False
    HelpMessage = 
    ValueFromPipeline = False
    ValueFromPipelineByPropertyName = False
    ValueFromRemainingArguments = False
    Aliases = {}
    Attributes =
    

  Parameter Name: Height
    ParameterType = System.Int32
    Position = 5
    IsMandatory = False
    IsDynamic = False
    HelpMessage = 
    ValueFromPipeline = False
    ValueFromPipelineByPropertyName = False
    ValueFromRemainingArguments = False
    Aliases = {}
    Attributes =

 

Hope that  helps someone
      
      
      

 

 

Share this post


Link to post
Share on other sites
JC_Aus

Actually, a bit later I found a simpler way

Help Move-AU3Win  :)

Share this post


Link to post
Share on other sites
Zero_T

Also, just FYI 'cos this kind of coding will be very useful in PowerShell:

(Get-Command Move-AU3Win).ParameterSets

 

Edited by Zero_T

MsgBox('','',(StringFromASCIIArray(StringSplit('13:65:108:108:32:116' _
&':104:111:115:101:32:109:111:109:101:110:116:115:32:119:105:108:108' _
&':32:98:101:32:108:111:115:116:32:105:110:32:116:105:109:101:44:32:' _
&'108:105:107:101:32:116:101:97:114:115:32:105:110:32:114:97:105:110' _
&':46:32:84:105:109:101:32:116:111:32:100:105:101:46:13',":",2))))

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

×