Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[v1.x] A_OSVersion should detect Windows 8.1


  • Please log in to reply
14 replies to this topic
fincs
  • Moderators
  • 1662 posts
  • Last active:
  • Joined: 05 May 2007
In AutoHotkey v1.x, A_OSVersion should return WIN_8.1 or similar on Windows 8.1 (NT 6.3).
happy.png

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

Why?



fincs
  • Moderators
  • 1662 posts
  • Last active:
  • Joined: 05 May 2007
Because it's the next version of Windows (and it has a different NT kernel version); it just happens that this time around MS didn't give it a completely new name (similar to Server 2008 vs Server 2008 R2; they are detected as WIN_VISTA and WIN_7 respectively).

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

Smells like a Service Pack to me; it just happens that MS are calling it something else.

 

If you want it, submit a patch.



fincs
  • Moderators
  • 1662 posts
  • Last active:
  • Joined: 05 May 2007
It is not a Service Pack, it is a new Windows release. If it were a Service Pack the NT kernel version would have stayed the same. I will submit a patch tomorrow.

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

I can bump version numbers too - it doesn't prove anything.  Perhaps it means nothing more than Microsoft chose not to market it as a Service Pack.

 

For practical purposes, there is as much benefit to leaving A_OSVersion as WIN_8 as there is to changing it.

 

Edit: However, I may be wrong in assuming A_OSVersion reports WIN_8 on Windows 8.1...



jNizM
  • Members
  • 928 posts
  • Last active: Jan 12 2018 09:23 AM
  • Joined: 01 Aug 2012
Windows 8.1 — a free update to Windows 8 © Microsoft
[AHK] 1.1.27.04 x64 Unicode | [WIN] 10 Pro (Version 1709)
My GitHub Profile | Donations are appreciated if I could help you

just me
  • Members
  • 1496 posts
  • Last active: Nov 03 2015 04:32 PM
  • Joined: 28 May 2011

AFAIK, starting with Windows 8 updates providing new functionalities will be called "New Version" rather than "Service Pack".


Prefer ahkscript.org for the time being.


WeirdHero
  • Members
  • 1 posts
  • Last active: Feb 19 2014 12:57 PM
  • Joined: 29 Dec 2013

As a developer who uses AHK at work, i have to agree with fincs.



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

Done.



DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008

I can bump version numbers too - it doesn't prove anything.  Perhaps it means nothing more than Microsoft chose not to market it as a Service Pack.
 
For practical purposes, there is as much benefit to leaving A_OSVersion as WIN_8 as there is to changing it.
 
Edit: However, I may be wrong in assuming A_OSVersion reports WIN_8 on Windows 8.1...


I remember reading this post back in December. At the time it did not dawn on me that A_OSVersion would not return the result Win_8 on Windows 8.1 and later. In my scripts I have been doing this
if A_OSVersion = Win_8
Now that A_OSVersion will return Win_8.1 I had to modify the above code to this.
IfInString,A_OSVersion,Win_8
 OS_Is_A_Variant_Of_Windows_8 = 1
;then do my if check
if OS_Is_A_Variant_Of_Windows_8 = 1
 MsgBox Treat this OS as Windows 8

Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

FYI, I changed my mind because of the changes introduced with the recent Windows 8.1 Update.



joedf
  • Administrators
  • 986 posts
  • AutoHotkey Foundation
  • Last active: Nov 02 2019 08:38 PM
  • Joined: 20 May 2012
if (regexreplace(A_OSVersion,"WIN_8\.*")==1)
 MsgBox Treat this OS as Windows 8

????


Why ahkscript.org? - autohotkey.com is outdated

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008

if (regexreplace(A_OSVersion,"WIN_8\.*")==1)
 MsgBox Treat this OS as Windows 8
????

thanks
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

joedf
  • Administrators
  • 986 posts
  • AutoHotkey Foundation
  • Last active: Nov 02 2019 08:38 PM
  • Joined: 20 May 2012
No problem ;)
Why ahkscript.org? - autohotkey.com is outdated