Jump to content

Recommended Posts

Posted (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 by Xichael
Posted

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.
 

Posted (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 by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

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)

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Posted (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 by Xichael

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   1 member

×
×
  • Create New...