AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Win98 problems w. stringlen & env. variables

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
S_R
Guest





PostPosted: Fri May 14, 2004 11:43 pm    Post subject: Win98 problems w. stringlen & env. variables Reply with quote

At least on two systems, I found these apparent anomalies (or, of course, I may have misunderstood what was supposed to happen):

setenv,alen,10
inputbox,answer,test,test string?
stringlen,alen,answer
inputbox,discard,test2,the length of %answer% is %alen%

produces the correct answer on XP, but always 10 on Win98se.

and
envset,savedname,savethisname
setenv,retrievedname,%savedname%

retrives 'savethisname' consistently on XP, but only sometimes on Win98SE (I haven't figured out what distingishes the cases that work and don't yet).

As usual, much thanks to Chris and others for all the work on AHK.

-SR
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sat May 15, 2004 2:49 am    Post subject: Re: Win98 problems w. stringlen & env. variables Reply with quote

Quote:
produces the correct answer on XP, but always 10 on Win98se.

I tried that exact script on Win98se here but couldn't reproduce the problem. Can you retest it as-is to verify?

Quote:
envset,savedname,savethisname
setenv,retrievedname,%savedname%

Yes I'm getting that same problem too. It seems that setting environment variables on Win9x isn't working. I'll try to find out why. Thanks for reporting it.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group