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 

A_Startup and A_StartupCommon

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



Joined: 02 Jun 2005
Posts: 48
Location: Moscow

PostPosted: Wed Jun 15, 2005 11:41 am    Post subject: A_Startup and A_StartupCommon Reply with quote

It seems to me that both A_Startup and A_StartupCommon return the same value, namely:
C:\Documents and Settings\All Users\Start Menu\Programs\Startup
Is it a bug or my own mistake?
I'm under XP
Back to top
View user's profile Send private message
mario_a



Joined: 12 Dec 2004
Posts: 51

PostPosted: Wed Jun 15, 2005 7:13 pm    Post subject: Reply with quote

On my machine (XP Pro, SP2, AutoHotkey v1.0.35.05) they both return different values :

A_Startup = C:\Documents and Settings\UserName\Start Menu\Programs\Startup
A_StartupCommon = C:\Documents and Settings\All Users\Start Menu\Programs\Startup
Back to top
View user's profile Send private message
TeknoMusicMan



Joined: 14 Apr 2005
Posts: 188
Location: Wisconsin, USA

PostPosted: Wed Jun 15, 2005 8:08 pm    Post subject: Reply with quote

The only way that they should return the same value is if somehow you magically logged in as "all users" and I'm 99% sure thats not possible.
_________________

"Make it idiot-proof, and someone will make a better idiot."
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed Jun 15, 2005 10:02 pm    Post subject: Reply with quote

I checked the code and these two values are read from the following registry locations:

Common: HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Common Startup"
User: HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Startup"

However, I notice that it falls back to the user's startup folder if the RegRead for "common" fails. Perhaps your username lacks permission to query HKEY_LOCAL_MACHINE? If this is what's happening, I will add this info to the help file.
Back to top
View user's profile Send private message Send e-mail
Dmitry



Joined: 02 Jun 2005
Posts: 48
Location: Moscow

PostPosted: Thu Jun 16, 2005 7:55 am    Post subject: Reply with quote

Thank you very much!
Actually it was a wrong value in the
HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Startup"
I don't know how it happened. I did not change anything in registry by my hands. My username have all administrative permission on this computer. Any assumptions?
Back to top
View user's profile Send private message
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