For anyone who stumbles across this post, here is a simple function to determine if you're running Windows 10 or Windows 11.CODE:
GetWinOSVersion()
{
i := A_OSVersion
If (i < 10.0.20000) ; You're running Windows 10
Return 10
Else If (i >= 10.0.20000) ; You're running Windows 11
Return 11
}
I think you would have to use VerCompare for this type of comparison.
What you just tried would break because those are not actual numbers due to the second . in the versioning system.
Statistics: Posted by RaptorX — Today, 16:17