AHK macros on Powershell ise

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
alexd91

AHK macros on Powershell ise

12 Aug 2018, 17:05

Hello,

I'm trying to use my AHK shortcut on PowerShell ISE, but when PowerShell ISE window is active all my AHK macros don't work,
for example this :

Code: Select all

:R*:ww ::
SendInput write-host
return
don't work on PowerShell ISE

does someone have an idea ?

thanks
autoscripter
Posts: 11
Joined: 04 Jan 2019, 18:46
Location: USA

Re: AHK macros on Powershell ise

04 Jan 2019, 18:56

+ 1

Very odd behavior as the macros work fine everywhere else. None work in PS ISE :?.
AutoHotkey v1.1.30.03 - Windows 10 Enterprise 1809
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: AHK macros on Powershell ise

04 Jan 2019, 19:37

Try running script elevated as admin.
autoscripter
Posts: 11
Joined: 04 Jan 2019, 18:46
Location: USA

Re: AHK macros on Powershell ise

05 Jan 2019, 00:24

Xtra wrote:
04 Jan 2019, 19:37
Try running script elevated as admin.

This worked with a little tweaking, thank you.
I originally had my ahk scripts in the windows "startup" folder so they can start at logon. When set to run as admin they refused to start at startup. I had to create a batch file with the following contents:

Code: Select all

@echo off
start /d "C:\Users\Cooldude\Scripts\Autohotkey"  script1.ahk
start /d "C:\Users\Cooldude\Scripts\Autohotkey"  script2.ahk
start /d "C:\Users\Cooldude\Scripts\Autohotkey"  script3.ahk

Then created a scheduled task to run the batch file at startup with “highest privileges”. That did the trick.
AutoHotkey v1.1.30.03 - Windows 10 Enterprise 1809

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww and 220 guests