pztlmx

How to convert AutoIT and AutoHotKey script to Powershell ?

4 posts in this topic

#1 ·  Posted

HI,

Having several AutoIT and AutoHotKey Scripts. How can I in a fast and smooth way convert these to PowerShell scripts (.ps1) ??

Would be nice if there were a function, where you could export the script to PowerShell ?

 

Best regards,

Jan Larsen / IBM

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

@pztlmx yes, it would be great. It would also be nice if you could convert batch files to fully functional python with a click of a button, but it doesn't work that way. Powershell and AutoIt are vastly different languages, with different syntax and abilities. There are some options if you search the forum for using AutoItX to call AutoIt in PS, as well as running powershell commands from an AutoIt script, but you're not going to find a one-button convert/export feature.

Edit: try this one for running PS commands in AutoIt, by our benevolent leader:

 

Edited by JLogan3o13

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

Share this post


Link to post
Share on other sites

#3 ·  Posted

Thanks.
Will take a look...

/Jan.

Share this post


Link to post
Share on other sites

#4 ·  Posted

On 7/6/2017 at 8:54 AM, pztlmx said:

Thanks.
Will take a look...

/Jan.

Using the AutoIT powershell cmdlets is very much a trial and error process, as the cmdlets do not have any help file content, so you will have to make educated guesses as to what each function does until you find the functions that perform the action you are looking for.

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