Hi all-
I need to have my script always run with UI access. Currently, I have my script auto-launch at startup, because I placed it in my StartUp folder. However, it seems it will not launch with UI access enabled automatically. I have to manually right-click and select "Run with UI access."
Is there a way to either have AHK always run with UI access or put something inside the script to make it have UI access? Or maybe I can start AHK with a bat file and pass a parameter?
Any thoughts?
Many thanks!
Always run with UI access?
Re: Always run with UI access?
I don't think you can start a UI access executable from a batch file or the command line, but you should be able to from AutoHotkey.
Alternatively, you can replace AutoHotkey.exe or change the default program for .ahk files.
Code: Select all
Run "Path\to\AutoHotkey-with-UI-access.exe" "Path\to\script.ahk"
Re: Always run with UI access?
Many thanks for the reply. That did the trick. I had actually updated the wrong AutoHotKey.exe. Once I updated the one that actually runs, it seems to work.lexikos wrote:Alternatively, you can replace AutoHotkey.exe or change the default program for .ahk files.