Invoke program if PC reboots/shuts down?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
chef423
Posts: 213
Joined: 28 Aug 2016, 12:10
Contact:

Invoke program if PC reboots/shuts down?

16 Nov 2017, 17:21

Anyway for AHK to invoke a program if the host PC reboots more than x amount of times in a 24 hour period?

Thanks..
User avatar
boiler
Posts: 16949
Joined: 21 Dec 2014, 02:44

Re: Invoke program if PC reboots/shuts down?

16 Nov 2017, 22:45

Yes. You could put a shortcut to a script in the Windows startup folder, and each time it runs, it would append the current time and date to a file. It would then check the last x entries in that file to see if they are within the last 24 hours. If so, it would run the program you want to invoke.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: OrangeCat, ReyAHK and 276 guests