Hello!
How does Powershell compare with Autohotkey? Is it more powerful/flexible or less?
I am interested in Powershell because it is available in ALL Windows PCs, you can use it at work with no worries about licence issues and you can use it in workstations where installing third-party tools like AHK is blocked.
Thanks!
Powershell vs AutoHotKey
Re: Powershell vs AutoHotKey
Its hard to compare, and both has pro's and con's, but with powershell you cant use things like:
- MouseMove / MouseClick
- Send / SendRaw / SendInput / SendPlay
- Create and Control Gui's
- tba...
A. There is no licence issue with AutoHotkey since its free and opensource
B. There is no need to install AutoHotkey to work with it
C. Many companies blocks powershell (via GPO) for user inputs for security reasons
- MouseMove / MouseClick
- Send / SendRaw / SendInput / SendPlay
- Create and Control Gui's
- tba...
A. There is no licence issue with AutoHotkey since its free and opensource
B. There is no need to install AutoHotkey to work with it
C. Many companies blocks powershell (via GPO) for user inputs for security reasons
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Re: Powershell vs AutoHotKey
Mmm this is great disadvantage, so you cannot click stuff with Powershell? Are you sure?
Re: Powershell vs AutoHotKey
You can, but you need DllImport and its more complicate than in autohotkey
Use PowerShell to Interact with the Windows API: Part 1
Use PowerShell to Interact with the Windows API: Part 1
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
Re: Powershell vs AutoHotKey
You can run Powershell scripts from an AHK script using RunWait.
If you need to read back into AHK what PS printed at the command-line, use the RunWaitOne() function which can be found on the documentation page for RunWait
So write your main script in AHK, and stuff that is not possible or is a pain to do with AHK, simply call a PS script to do it.
Bear in mind you can also use AHK's FileInstall command to pack a powershell script inside a compiled AHK script - so you do not need to distribute the AHK script and the PS script - simply compile the AHK script and the PS script is bundled inside the EXE
If you need to read back into AHK what PS printed at the command-line, use the RunWaitOne() function which can be found on the documentation page for RunWait
So write your main script in AHK, and stuff that is not possible or is a pain to do with AHK, simply call a PS script to do it.
Bear in mind you can also use AHK's FileInstall command to pack a powershell script inside a compiled AHK script - so you do not need to distribute the AHK script and the PS script - simply compile the AHK script and the PS script is bundled inside the EXE
Re: Powershell vs AutoHotKey
Where is Powershell stronger than AutoHotkey? When it is better to use Powershell instead of AutoHotkey?
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
Re: Powershell vs AutoHotKey
System administration tasks.
Things like making configuration changes to MS Exchange, via the Exchange Management Shell (Which is powershell based).
Things like making configuration changes to MS Exchange, via the Exchange Management Shell (Which is powershell based).
Re: Powershell vs AutoHotKey
And now Powershell is cross platform and Open Source as well:
News: Microsoft PowerShell Goes Open Source, Arrives On Linux, Mac
http://www.informationweek.com/devops/p ... id/1326670
Source:
https://github.com/PowerShell/
News: Microsoft PowerShell Goes Open Source, Arrives On Linux, Mac
http://www.informationweek.com/devops/p ... id/1326670
Source:
https://github.com/PowerShell/
Re: Powershell vs AutoHotKey
can I use AHK scripting in powershell?
I don't really see the point in typing two lines of scripting commands if I need to paste in 3 word sentence repeatedly. can I make in powreshell (same like AHK) two-three key combination and the text comes up?
I don't really see the point in typing two lines of scripting commands if I need to paste in 3 word sentence repeatedly. can I make in powreshell (same like AHK) two-three key combination and the text comes up?
Re: Powershell vs AutoHotKey
so, if I can use PowerShell scripts in AHK, can I write AHK scripts and transfer them to PowerShell?
Re: Powershell vs AutoHotKey
Define "transfer to powershell"
You can run an AHK script from powershell, just like you can run an AHK script from the command-line
You could have a string in powershell which contains AHK code, then either:
Pipe it to a text file, then run it as normal.
Or
Use Autohotkey.dll to run AHK code dynamically
You can run an AHK script from powershell, just like you can run an AHK script from the command-line
You could have a string in powershell which contains AHK code, then either:
Pipe it to a text file, then run it as normal.
Or
Use Autohotkey.dll to run AHK code dynamically
Return to “Other Programming Languages”
Who is online
Users browsing this forum: No registered users and 16 guests