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 

environment variables in 64-bit

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



Joined: 27 Jul 2009
Posts: 1

PostPosted: Mon Jul 27, 2009 8:13 pm    Post subject: environment variables in 64-bit Reply with quote

When i execute the following in a script in Win7 - 64 bit:

EnvGet, BitVersion, PROCESSOR_ARCHITECTURE

the BitVersion variable has "x86" instead of "x64". Also, A_OsType has "WIN32_NT".

Is this a known issue?

cliff

[Moved from Bug Reports forum. ~jaco0646]
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Thu Jul 30, 2009 7:45 am    Post subject: Reply with quote

Quote:
the BitVersion variable has "x86" instead of "x64".
EnvGet simply retrieves environment variables - obviously the environment in which AutoHotkey is running has a variable PROCESSOR_ARCHITECTURE with the value "x86". If you're wondering why it isn't "x64", that is because AutoHotkey is a 32-bit application and therefore runs under Wow64.
Quote:
Also, A_OsType has "WIN32_NT".
That is what it is supposed to be. "Win32" does not necessarily mean "Windows 32-bit". Wikipedia may shed some light on the topic. See also: A_OSType and 64-Bit Vista.
Back to top
View user's profile Send private message Visit poster's website
JBensimon



Joined: 16 Nov 2004
Posts: 153
Location: New York

PostPosted: Wed Feb 24, 2010 1:50 am    Post subject: Reply with quote

You can query the PROCESSOR_ARCHITEW6432 variable in a 32-bit app (such as AHK) to see if you're running on a 64-bit platform. If it exists (i.e. is non-blank), it should return AMD64 if you're running under an Intel (non-Itanium) or AMD 64-bit platform (and return IA64 for Itanium, though I can't personally verify the latter).

Jacques.
Back to top
View user's profile Send private message Visit poster's website
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