Audrey Posted June 4, 2017 Share Posted June 4, 2017 (edited) Hi, Does anybody know if it is possible to pass arguments (set in a shortcut) to a script which can work with it? I've searched all related functions and the forum but could not find any solution for it. Here an example. I have two shortcuts, created with another script: FileCreateShortcut("Script.au3", "Shortcut One", "", 1, "", "") FileCreateShortcut("Script.au3", "Shortcut Two", "", 2, "", "") Both will open the same script, Script.au3, but the argument is different. The Script has to 'read' this argument for further processing. Thanks guys, Edited June 4, 2017 by Audrey Link to comment Share on other sites More sharing options...
Developers Jos Posted June 4, 2017 Developers Share Posted June 4, 2017 Are you asking how to read the supplied parameter? => Open helpfile and look for $cmdline Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Audrey Posted June 4, 2017 Author Share Posted June 4, 2017 Thanks Jos! This helped me a lot. 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