Davman Posted July 20, 2004 Share Posted July 20, 2004 Ok, hope someone is going to have an idea about this I'm sure you all know about http:// links, but there is also the availability of irc:// callto:// (skype) aim:// (aol) as protocol links. Does anyone know where these are kept (I'm assuming the registry), and if Auto-It can edit them? Sitting comfortably behind the code. Link to comment Share on other sites More sharing options...
Davman Posted July 20, 2004 Author Share Posted July 20, 2004 Ok, figured it out. How can i make Auto-It listen for startup parameters? I.E, if you go to Start, Run, and enter: notepad.exe <filename> then notepad will run, and open the filename. Is there any way to pass such parameters to an auto-it script? Sitting comfortably behind the code. Link to comment Share on other sites More sharing options...
Davman Posted July 20, 2004 Author Share Posted July 20, 2004 never mind... *rtfm* Command line parameters The special array $CmdLine is initialized with the command line parameters passed in to your AutoIt script. Note the scriptname is not classed as a parameter; get this information with @ScriptName instead. A parameter that contains spaces must be surrounded by "double quotes". Compiled scripts accept command line parameters in the same way. $CmdLine[0] is number of parameters $CmdLine[1] is param 1 (after the script name) $CmdLine[2] is param 2 etc ... $CmdLine[$CmdLine[0]] is one way to get the last parameter... Sitting comfortably behind the code. Link to comment Share on other sites More sharing options...
Davman Posted July 22, 2004 Author Share Posted July 22, 2004 Answered my own question as well... [HKEY_CLASSES_ROOT\<protocol name>] @="URL: <protocol name> Protocol" "EditFlags"=hex:02,00,00,00 "URL Protocol"="" [HKEY_CLASSES_ROOT\<protocol name>\DefaultIcon] [HKEY_CLASSES_ROOT\<protocol name>\shell] [HKEY_CLASSES_ROOT\<protocol name>\shell\open] [HKEY_CLASSES_ROOT\<protocol name>\shell\open\command] @="<program to execute> %1" %1 is the parameters that are passed to the program. In this case: liquidl://filename would pass "liquidl://filename" to the program as its cmd line parameters. Sitting comfortably behind the code. Link to comment Share on other sites More sharing options...
Enforcer Posted April 15, 2009 Share Posted April 15, 2009 Verry interesting information, thx for explain... [RU] Zone 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