Steinland Posted January 30, 2018 Author Share Posted January 30, 2018 42 minutes ago, Moonscarlet said: That's what I mean, since it's different every time, why are you using $CmdLine and not Run() with utorrent path & filepath directly? The filepath is not the same every time. The browser saves it in a temp folder. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted January 30, 2018 Share Posted January 30, 2018 @Steinland I think your issue is not placing parameter where it needs to be for ShellExecute. You can/should verify your $CmdLine[1] as part of your script to make sure you get what you expect. If $CmdLine[0] > 0 Then MsgBox(0, "", $CmdLine[1]) Earthshine 1 Link to comment Share on other sites More sharing options...
Steinland Posted January 30, 2018 Author Share Posted January 30, 2018 3 minutes ago, ViciousXUSMC said: @Steinland I think your issue is not placing parameter where it needs to be for ShellExecute. You can/should verify your $CmdLine[1] as part of your script to make sure you get what you expect. If $CmdLine[0] > 0 Then MsgBox(0, "", $CmdLine[1]) $CmdLine[1] works with ShowMessage, MsgBox etc but not in ShellExecute Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted January 30, 2018 Share Posted January 30, 2018 As I hinted and Jos explained: You need to look at the syntax for ShellExecute Link to comment Share on other sites More sharing options...
Steinland Posted January 30, 2018 Author Share Posted January 30, 2018 33 minutes ago, ViciousXUSMC said: @Steinland I think your issue is not placing parameter where it needs to be for ShellExecute. You can/should verify your $CmdLine[1] as part of your script to make sure you get what you expect. If $CmdLine[0] > 0 Then MsgBox(0, "", $CmdLine[1]) It was't supposed to be bold. I just showed how Firefox executes the .exe with the filename as a parameter. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted January 30, 2018 Share Posted January 30, 2018 At this point probably a dozen of us know the issue and why it is not working. But, we would expect you to understand or at least take a look at this page: https://www.autoitscript.com/autoit3/docs/functions/ShellExecute.htm Moonscarlet 1 Link to comment Share on other sites More sharing options...
Developers Jos Posted January 30, 2018 Developers Share Posted January 30, 2018 I see you guys are having a ball.... enjoy the dancing. Jos Moonscarlet and Earthshine 2 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...
Earthshine Posted January 30, 2018 Share Posted January 30, 2018 post the whole script so it can be pointed out to you My resources are limited. You must ask the right questions 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