dtormentedsoul Posted July 10, 2023 Share Posted July 10, 2023 AutoIT v3.3.16.1 oddly not taking argument on couple of my PCs, but is working perfectly on my other one. Exactly the same code. Any clue what's going on? Link to comment Share on other sites More sharing options...
Andreik Posted July 10, 2023 Share Posted July 10, 2023 Try to display $CmdLineRaw and see what you get. dtormentedsoul 1 When the words fail... music speaks. Link to comment Share on other sites More sharing options...
argumentum Posted July 10, 2023 Share Posted July 10, 2023 does the association add %1 ?? dtormentedsoul 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
mistersquirrle Posted July 11, 2023 Share Posted July 11, 2023 (edited) To add some more information to what @argumentum is saying, check out: https://superuser.com/questions/1456692/how-do-i-set-advance-file-association-in-windows-10-while-passing-app-parameter You may need to setup file associations again, or look into the registery for the au3 association and edit it to include the "%1" Alternatively in SciTE you can set command line params with Shift + F8 for scripts run from SciTE directly. Or compile to .exe and test with that instead of the .au3 file. Edited July 11, 2023 by mistersquirrle dtormentedsoul 1 We ought not to misbehave, but we should look as though we could. Link to comment Share on other sites More sharing options...
Solution dtormentedsoul Posted July 11, 2023 Author Solution Share Posted July 11, 2023 (edited) you guys are geniuses. though it did have the "%1", it didnt have the %*. I patterned it from the computer that is working where i found the %* My OS: Windows 11 Home (OS Build: 22621.1928) Here's how it got fixed: regedit Computer\HKEY_CLASSES_ROOT\Applications\AutoIt3.exe\shell\open\command Change whats there from "c:\Program Files (x86)\AutoIt3\AutoIt3.exe" "%1" to "c:\Program Files (x86)\AutoIt3\AutoIt3.exe" "%1" %* Edited July 11, 2023 by dtormentedsoul argumentum 1 Link to comment Share on other sites More sharing options...
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