AutoHotkey Community

It is currently May 26th, 2012, 9:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 27th, 2009, 9:13 pm 
Offline

Joined: July 27th, 2009, 9:09 pm
Posts: 1
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]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2009, 8:45 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2010, 2:50 am 
Offline

Joined: November 16th, 2004, 6:38 am
Posts: 153
Location: New York
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google Feedfetcher, krajan, patgenn123, wolverineks and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group