--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> --- In [email protected], "brucexs" <bswitzer@> wrote:
> >
> > -
> > > 
> > > If i select another drive, i got only the first character.
> > > Do you have any clue ??
> > >
> > The other program is using Unicode for all its strings would be my guess.
> >
> 
> More likely an issue of double-byte code page, although one would think if 
> the string retrieved is "C:\PPro\script\", it would work anyway since all the 
> characters are in the low value range. The following scriptlet worked fine 
> for me (US English).
> 
> local han=window("firstwindow","c=filedialog")
> if( win.match(han,"filedialog") == 1 || win.match(han,"c=bosa_sdm*") ==1 )do
> local myString = repeat("A",1025)
> local len = win.SendMessageStrRemote(han,0x0400+102,1000,myString)
> win.debug(len)
> for( local _i = 1; _i < len ; _i = _i +1)
> win.debug("<"++myString.select(_i,_i+1)++">")
> endfor
> win.debug("<"++myString++">")
> endif
> 
> Regards,
> Sheri
>

Oops. Never mind. When the base program is Unicode, it doesn't work.

Reply via email to