Xichael Posted July 15 Posted July 15 (edited) On Windows 10, I could just put a shortcut to the script in the startup folder to have it run. Since installing 11, that doesn't work. I've also tried including the exe in the shortcut path ("C:\Program Files (x86)\AutoIt3\AutoIt3_x64.exe" C:\Path\To\Script.au3). In either case, the script launches fine with a double click, but won't run at login. I've checked, and it is enabled in the task manager's startup list. Edited July 15 by Xichael
argumentum Posted July 15 Posted July 15 Am using "How to pin a script to the taskbar or start menu". It works well when the link is at "shell:startup". Try it and let me know. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Xichael Posted July 15 Author Posted July 15 Seems the only thing different about the shortcut generated by your script from what I've tried is the inclusion of an /AutoIt3ExecuteScript switch between the AutoIt.exe path and the script path. This too works fine from a double click, but won't run at startup when placed in shell:startup.
argumentum Posted July 15 Posted July 15 (edited) ok, let's try nonsense then 😅 Copy or move your installation from "C:\Program Files (x86)\AutoIt3" to "C:\thisIsNotProtectedFolder\AutoIt3" Am on Win11 pro. Actually a bunch of them. And it works fine but, I never install in the default folder. So, try that ?. It makes no sense but if is not disabled, then maybe a protection/rights thing ?. Change the owner of the files ?. Am just as perplexed for what is happening in your PC. Edited July 15 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
rudi Posted July 15 Posted July 15 Just an idea: Put a CMD script to the startup folder, launching your AU3 script, followed by a "pause" to see, if the CMD script is launched correcly from startup (or common startup) argumentum 1 Earth is flat, pigs can fly, and Nuclear Power is SAFE!
Subz Posted July 16 Posted July 16 Add it to registry : For current user: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run For all users: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Xichael Posted Thursday at 09:33 AM Author Posted Thursday at 09:33 AM (edited) Thanks for the cmd tip, rudi.. ended up just adding cmd /c start "" to the beginning of the shortcut target to have it launch from a briefly appearing cmd window, and it's working great: cmd /c start "" C:\Path\To\Script.au3 Good to know about the registry option too, subz. Might use that. Edited Friday at 12:07 AM by Xichael argumentum 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now