| View previous topic :: View next topic |
| Author |
Message |
powerdude
Joined: 27 Jul 2009 Posts: 1
|
Posted: Mon Jul 27, 2009 8:13 pm Post subject: environment variables in 64-bit |
|
|
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 |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7295 Location: Australia
|
Posted: Thu Jul 30, 2009 7:45 am Post subject: |
|
|
| 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 |
|
 |
JBensimon
Joined: 16 Nov 2004 Posts: 153 Location: New York
|
Posted: Wed Feb 24, 2010 1:50 am Post subject: |
|
|
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 |
|
 |
|