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 

Recurse VARs

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Venia Legendi



Joined: 27 May 2005
Posts: 35

PostPosted: Tue Dec 13, 2005 12:27 pm    Post subject: Recurse VARs Reply with quote

Hello,

unfortunately environment variables are allow in some registry keys, e.g.
Code:

regread FavOrdner, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, Favorites
 msgbox, "%FavOrdner%"

yields - in most cases - "%USERPROFILE%\Favorites", sometimes the complete path and - that the problem - sometimes "%IDONOTKNOWWHAT%\Path" or even "%NETWORKMAP2%%UserProf1%\Favorites" ...

Is there a way to parse this into a complete path - without knowing whether there's a environment var in the key or not.

Thanx
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Tue Dec 13, 2005 12:57 pm    Post subject: Reply with quote

Try using Transform Deref to expand the variable references inside the string.
Back to top
View user's profile Send private message Send e-mail
Venia Legendi



Joined: 27 May 2005
Posts: 35

PostPosted: Tue Dec 13, 2005 3:27 pm    Post subject: Reply with quote

THANK YOU! Works fine, in for all instances.

Guido
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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