AHK Scripts not working after PC turned off Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
E_Holliday
Posts: 5
Joined: 25 Dec 2017, 20:30

AHK Scripts not working after PC turned off

26 Dec 2017, 16:46

I have a few AHK scripts on my PC right now, and I realised that after I my PC turns off and is started again, I have to manually run the scripts in order for them to activate. Just wondering if it's a bug or if I have to write something in my script to have it automatically turn on the script when my PC starts again. I'll write one of my scripts below.

Code: Select all

; set number pad key

NumPad8::send {Volume_Up 1}
NumPad5::send {Volume_Down 1} 
NumPad7::send {Volume_Mute}
Return
Thanks! :dance:
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: AHK Scripts not working after PC turned off  Topic is solved

26 Dec 2017, 17:04

That's intended.
But, you can put a shortcut to your script(s) into your computer's startup folder to automatically start your script(s) after a reboot.
User avatar
Scr1pter
Posts: 1272
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: AHK Scripts not working after PC turned off

26 Dec 2017, 20:34

Yes, imagine you have some script which causes errors (e.g. ctrl key pressed permanently).
Then a reboot would be your last chance to have the issue solved.
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: AHK Scripts not working after PC turned off

27 Dec 2017, 02:22

Scr1pter wrote:Yes, imagine you have some script which causes errors (e.g. ctrl key pressed permanently).
Then a reboot would be your last chance to have the issue solved.
AFAIK "CTRL+ALT+DEL" would be that other (system low-level) option, where you can terminate AHK itself or the Explorer (that you can afterward re-run from the TaskManager as well (= an equivalent to a system restart).

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 392 guests