I need to RUN AS ADMINISTRATOR otherwise some of my keys don't work
Many many posts online.
But some of the very old, and offering advice that's all over the park.
Can someone provide a little help on the best 2021 way?
I just have a few simple keyboard commands in my AHK file. Nothing fancy.
This idea any good?
https://stackoverflow.com/questions/63889537/run-ahk-script-as-admin-on-startup
Thanks!
What's 2021 best method to get your AHK script to run at startup on a Win 10 64 bit PC?
What's 2021 best method to get your AHK script to run at startup on a Win 10 64 bit PC?
Last edited by Timmy347 on 26 Sep 2021, 19:03, edited 1 time in total.
Re: What's 2021 best method to get your AHK script to run at startup on a Win 10 64 bit PC?
Yep, the startup directory looks like a good one to me.
Re: What's 2021 best method to get your AHK script to run at startup on a Win 10 64 bit PC?
RunAsTask() - Auto-elevates script without UAC prompt | http://ahkscript.org/boards/viewtopic.php?t=4334
By SKAN, http://goo.gl/yG6A1F, CD:19/Aug/2014 | MD:22/Aug/2014
By SKAN, http://goo.gl/yG6A1F, CD:19/Aug/2014 | MD:22/Aug/2014
Re: What's 2021 best method to get your AHK script to run at startup on a Win 10 64 bit PC?
Thanks.gmoises wrote: ↑26 Sep 2021, 20:08RunAsTask() - Auto-elevates script without UAC prompt | http://ahkscript.org/boards/viewtopic.php?t=4334
By SKAN, http://goo.gl/yG6A1F, CD:19/Aug/2014 | MD:22/Aug/2014
I'm new to this, and only have a simple script. Can you tell me how i would use that for this:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
RAlt::Send !{f4}
Return