Xichael Posted Tuesday at 12:02 AM Posted Tuesday at 12:02 AM (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 Tuesday at 02:58 AM by Xichael
argumentum Posted Tuesday at 01:21 AM Posted Tuesday at 01:21 AM 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 Tuesday at 03:15 AM Author Posted Tuesday at 03:15 AM 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 Tuesday at 03:30 AM Posted Tuesday at 03:30 AM (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 Tuesday at 03:31 AM by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
rudi Posted Tuesday at 08:19 AM Posted Tuesday at 08:19 AM 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 Wednesday at 03:12 AM Posted Wednesday at 03:12 AM Add it to registry : For current user: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run For all users: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Xichael Posted 14 hours ago Author Posted 14 hours ago (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 21 minutes ago 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