AUTO START AHK SCRIPTS
AUTO START AHK SCRIPTS
I shut down my computer daily at work to take home my laptop each day. When I come back the next morning and boot up, I have to run AHK scripts anew. Is there a way to make them just always run, or at least to auto-start themselves when computer boots up each time?
Re: AUTO START AHK SCRIPTS
scheduled tasks, put them in startup folder, etc.
Re: AUTO START AHK SCRIPTS
I cannot do anything that requires admin login.
Re: AUTO START AHK SCRIPTS
then make a script that run your other scripts for you, or a batch file or ctrl+a+enter
i dont think moving stuff into the start up folder requires admin privileges, but it might be prevented by a group policy or smth, idk
i dont think moving stuff into the start up folder requires admin privileges, but it might be prevented by a group policy or smth, idk
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: AUTO START AHK SCRIPTS
Here's a script I use to automatically run AHK scripts when I need them, and automatically close them when I don't.
Code: Select all
#Persistent
DetectHiddenWindows, On
SetTitleMatchMode, 2
SetTimer, Monitor, 1000
Monitor:
{
; Example, this will automatically run "Photoshop.ahk" when I open Photoshop.
RunScript("ahk_exe Photoshop.exe","Photoshop.ahk")
}
Return
RunScript(Program,Script)
{
IfWinExist, %Program%
{
IfWinNotExist, %Script%
{
Run, %Script%
WinWait, %Script%
}
} Else {
IfWinExist, %Script%
{
WinClose, %Script%
}
}
}