[jawsscripts] Re: RUN function in JAWS Basic

  • From: Csaba Godo <arpadhazi68.jawsul@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 15 Nov 2013 18:32:20 +0100

Thanks, Doug! The solution you have proposed me works well, so the 
following lines are enough to get the right path to pass to the RUN 
function:

sPath = IniReadString (gsSection, "Path", "", gsIniFile)
sPath = "\"" + sPath + "\""
Run (sPath)

So the user can simply save the desired pathes into the INI file with 
double backslashing and the spaces in the path have no importance.

Csaba



2013.11.15. 12:54 keltezéssel, Doug Lee írta:
> Surrounding the string in quotes that actually become part of the
> string should work:
>
> run("\"c:\\Program Files\"")
>
> You then do not have to escape each individual space.
>
> On Fri, Nov 15, 2013 at 12:33:02PM +0100, Csaba Godo wrote:
> Hi Garry,
>
> Honestly, I do not understand what you did not understand. The problem
> is, that it is undocumented by Freedom, that the "Run" function can act
> only on so called "escaped" path strings, which does not contain spaces,
> but its ALT code, the "\32". Or can work with the short file and
> directory names.
> But now, thanks to Haetir, I know it already and so I can mention it in
> the Hungarian version of JAWs Basic language reference.
>
> Cheers,
>
> Csaba
>
> 2013.11.15. 6:49 keltez?ssel, Gary Patterson ?rta:
>> Once again, perhaps I am not understanding your question. Many times the
>> drive letter if followed by two slashes followed by the directory names,
>> followed by the file's name.
>>
>> Perhaps I don't understand the problem. If you want any more ansers, write
>> me off list.
>>
>> Gary Patterson
>>
>>
>> -----Original Message-----
>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Csaba Godo
>> Sent: Thursday, November 14, 2013 11:14 PM
>> To: JAWSScripts List
>> Subject: [jawsscripts] RUN function in JAWS Basic
>>
>> Hi everybody,
>>
>> I've just ran into a problem using the "Run" function. I thought I share my
>> experience. The "Run" function takes only one parameter, which is a path. It
>> could be a name of a file, or a complete path of an internet address. The
>> documentation writes that this function acts like the "Run"
>> dialog box in the Windows. But it is not mentioned that it could not accept
>> long file or directory names. It could accept only the old short names. So
>> if I want the directory "C:\Program Files" to open, I have to give
>> "C:\\Progra~1" as parameter. Interesting stuff... no comment..
>>
>> Just a question: How is it possible to get the short name of a file or a
>> directory in JAWS Basic? Do somebody have any idea?
>>
>> Thanks,
>>
>> Csaba
>> __________???
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
>> __________???
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
> __________???
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
__________ďż˝

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: