StAbb Posted June 26, 2008 Share Posted June 26, 2008 Hey guys I was just curious as to if AutoIt could use external arguments from other programs such as uTorrent for example. In the advanced tab on uTorrent you can set uTorrent to run an exe when a download finishes and you can also pass on arguments into that exe for example: %n=Name of the torrent %d=destination of the files the torrent downloaded etc. I was wondering if anyone could help me out or point me in the right direction as to how to pass these arguments on to a compiled AutoIt script if it is possible. Thanks a lot guys, any feedback would be greatly appreciated. -Steve Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2008 Developers Share Posted June 26, 2008 Seach for $cmdline in the helpfile. 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...
StAbb Posted June 26, 2008 Author Share Posted June 26, 2008 Thank for the fast response, but that just tells me how to put the parameters into a variable which is awesome but do you know if it will grab the value of the argument defined by another program or just the raw parameter name and return that in the $cmdline array? Thanks again man. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2008 Developers Share Posted June 26, 2008 Thank for the fast response, but that just tells me how to put the parameters into a variable which is awesome but do you know if it will grab the value of the argument defined by another program or just the raw parameter name and return that in the $cmdline array?Thanks again man.You lost me here. $cmdline allows you to retrieve all parameters which were specified on the commandline that started de program(script).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...
StAbb Posted June 26, 2008 Author Share Posted June 26, 2008 Sorry, but yea so if I run the command "Program.exe %N". Where %N is an argument uTorrent declared that contains the name of the torrent. Will $cmdline[1] equal "%N" or the torrent name. Or would I have to extract the torrent name from the variable? Thanks. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2008 Developers Share Posted June 26, 2008 Sorry, but yea so if I run the command "Program.exe %N". Where %N is an argument uTorrent declared that contains the name of the torrent. Will $cmdline[1] equal "%N" or the torrent name. Or would I have to extract the torrent name from the variable? Thanks.Have you tried it in a script ? 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...
StAbb Posted June 26, 2008 Author Share Posted June 26, 2008 Well I am at work now, which has horrible internet and they would be pissed if I run torrents on the network, cause they monitor everything. But yea when I get home I will. I was just wondering if you knew. Thanks again. 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