Drop file on Script issue - brakes path down by spaces
Posted: 21 Jan 2018, 22:00
I tried making some gif player but i noticed that dropping anything on a script (uncompiled) is returning weird results.
I expected it to return a path but instead it returns parts of the path.
For instance, dropping some file would place some number like 7 in the %0% param and place different parts of the path in %1% - %7%
Essentially, its braking down the path by spaces in the string.
An example as it currently is:
Gif file location:
D:\AHK's Stuff\Test projects and script development\assets\anim test\2.gif
dropping the file on a script returns this:
%0%=7
%1%=D:\AHK's
%2%=Stuff\Test
%3%=projects
%4%=and
%5%=script
%6%=development\assets\anim
%7%=test\2.gif
Is this some bug or am i using this the wrong way?? Is this intentional?
I could not find anything relevant to this behavior.
So confusing. xD
Edit:
Essentially, dropping a file with any spaces in the path is making the script think theres multiple parameters, depending on how many spaces there are.
I expected it to return a path but instead it returns parts of the path.
For instance, dropping some file would place some number like 7 in the %0% param and place different parts of the path in %1% - %7%
Essentially, its braking down the path by spaces in the string.
An example as it currently is:
Gif file location:
D:\AHK's Stuff\Test projects and script development\assets\anim test\2.gif
dropping the file on a script returns this:
%0%=7
%1%=D:\AHK's
%2%=Stuff\Test
%3%=projects
%4%=and
%5%=script
%6%=development\assets\anim
%7%=test\2.gif
Is this some bug or am i using this the wrong way?? Is this intentional?
I could not find anything relevant to this behavior.
So confusing. xD
Edit:
Essentially, dropping a file with any spaces in the path is making the script think theres multiple parameters, depending on how many spaces there are.