Sign in to follow this  
Followers 0
knight666

Spaces between parameters are annoying

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



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 :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0