Jump to content

suggestion: Add pragma to make @OSVersion report WIN_10 even in Windows 11


Go to solution Solved by Danp2,

Recommended Posts

Posted

Sorry for this bad idea, but it would be really useful for me to have a pragma option for that 😅

Since the release of Windows 11, I have written a lot of AutoIT scripts that use @OSVersion == "WIN_10", and I use a $OSVersion to actually confirm that the current OS is Windows 11.

Would it be possible adding a pragma option that would let us identify Windows 11 as @OSVersion = "WIN_10"? :)

  • Developers
Posted (edited)
  On 11/30/2023 at 12:56 PM, PixelPixPanreyes said:

Would it be possible adding a pragma option that would let us identify Windows 11 as @OSVersion = "WIN_10"?

Expand  

Nah ...   your reason for asking is because your script logic is wrong and I honestly don't see how this saves you any times as ALL scripts would have to be recompiled anyway.

Simply do a replace of the @OSVersion = "WIN_10" in your scripts for a test that tests the Build number:  @OSBuild >= xxxxx  (xxxx is the win10 build you like to support.)

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...