knight666 Posted February 4, 2008 Posted February 4, 2008 Hi. I'm still making an IRC bot, and I've run into an annoying problem. When I have the function WinampPlaylist, it gives four arguments: ShellExecute(@AutoItExe, /AutoIt3ExecuteScript addonWinampPlaylist.au3 <channel> <nickname> <number> <playlist to open>) But, if the play list is "D:\Program Files\Winamp\musica.m3u" for instance, it tries to open "D:\Program (no end bracket). I can help this by adding $CmdLine[5] to [7] onto [4], but I will probably need more than 4 arguments at some point. Is there any way to ignore the spaces? Otherwise I'll have to convert spaces to %20 and back again. :\ Thanks in advance.
NELyon Posted February 4, 2008 Posted February 4, 2008 Hi. I'm still making an IRC bot, and I've run into an annoying problem. When I have the function WinampPlaylist, it gives four arguments: ShellExecute(@AutoItExe, /AutoIt3ExecuteScript addonWinampPlaylist.au3 <channel> <nickname> <number> <playlist to open>) But, if the play list is "D:\Program Files\Winamp\musica.m3u" for instance, it tries to open "D:\Program (no end bracket). I can help this by adding $CmdLine[5] to [7] onto [4], but I will probably need more than 4 arguments at some point. Is there any way to ignore the spaces? Otherwise I'll have to convert spaces to %20 and back again. :\ Thanks in advance. It works fine if you pass the argument between double quotes It treats it as one argument
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