script not in startup despite being included in win11?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

script not in startup despite being included in win11?

Post by newcod3r » 29 Nov 2021, 04:43

have also reinstalled and re-placed the shortcuts in the shell:startup folder, but it still doesn't start together. Didn't use to happen.

What can I do?

Image

lexikos
Posts: 9494
Joined: 30 Sep 2013, 04:07
Contact:

Re: script not in startup despite being included in win11?

Post by lexikos » 29 Nov 2021, 04:53

Check "Startup Apps" in Windows Settings. Your script should be listed there and turned on.

If AutoHotkey.ahk is in your Documents folder, you can put a shortcut to AutoHotkey.exe in startup instead. It's what I do, and it works on my Windows 11 system.

newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: script not in startup despite being included in win11?

Post by newcod3r » 29 Nov 2021, 17:25

yes it shows in startup apps too:
image.png
image.png (101.03 KiB) Viewed 2133 times
mine is also a shortcut placed in startup folder.

newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

Re: script not in startup despite being included in win11?

Post by newcod3r » 08 Dec 2021, 06:54

still looking for a solution.

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: script not in startup despite being included in win11?

Post by LAPIII » 14 Jan 2023, 19:39

@lexikos where is AutoHotkey.ahk? I see no such file:

CProgram_FilesAutoHotkey 14_01_23 07⦂44⦂25⦂165 PM.jpg
CProgram_FilesAutoHotkey 14_01_23 07⦂44⦂25⦂165 PM.jpg (100.33 KiB) Viewed 1397 times

If I associate the file type to SciTE4AutoHotkey then I it won't be able to run scripts by clicking on their icons and be able to use SciTE4AutoHotkey to save with the .ahk file extension without having to type it. Also associating the file type will make scripts that are put in the startup folder to open in SciTE4AutoHotkey.

Bathinda
Posts: 9
Joined: 01 Jan 2023, 05:29
Contact:

Re: script not in startup despite being included in win11?

Post by Bathinda » 03 Apr 2023, 09:17

I too am having exactly same problem on Win11 22H2 Build 22621.1485

Some items/programs, when put into the common or admin's startup folder are run correctly when the admin/user logs in.
But some, like Utorrent, and ahk scripts pose problems (read 'don't run').

I've tried many solutions over many days. But have not come to know yet if the problem lies with Ahk script files, or with windows. I've also tried inserting those programs shortcuts to windows registry to make them run. Have also tried to create windows scheduled tasks for them. But even though some simpler programs, like notepad, do run. but those which were posing problems, didn't run with these alternatives also.

I'm the sole admin on this local work group pc. No network, no special environment, nothing.

I'm pretty sure that such problems only started after updating windows11 to current build and after updating ahk to v2 (although now problem doesn't go away, even if I uninstalled ahk v2.0).

Could anyone guide or tell if this could be windows or ahk or utorrent problem?

User avatar
mikeyww
Posts: 26437
Joined: 09 Sep 2014, 18:38

Re: script not in startup despite being included in win11?

Post by mikeyww » 03 Apr 2023, 11:34

A test script is below.

Code: Select all

#Requires AutoHotkey v1.1.33
MsgBox 123
Instructions:
https://www.autohotkey.com/docs/v1/FAQ.htm#Startup

Follow all three steps exactly.

Finally, restart your computer.

Post Reply

Return to “Ask for Help (v1)”