Sign in to follow this  
Followers 0
Xenobiologist

_getAutoitVersion()

2 posts in this topic

#1 ·  Posted (edited)

Hi,

I sometimes need this func for debugging and to get information from beginners to help them easily. :)

#include<Array.au3>
Global $versions = _getAutoitVersion()
_ArrayDisplay($versions)

;===============================================================================
; Function Name:   _getAutoitVersion()
; Description::    Collecting Autoit Versions
; Parameter(s):    -
; Requirement(s):  -
; Return Value(s): Array with
;                    [0][0] = Script Starting Version    , [0][1] = version 
;                    [1][0] = Stable Version            , [1][1] = version 
;                    [2][0] = Stable InstallDir        , [2][1] = path 
;                    [3][0] = Beta Version            , [3][1] = version or ''
;                    [4][0] = Beta InstallDir            , [4][1] = path or ''
; Author(s): Xenobiologist
;===============================================================================

Func _getAutoitVersion()
    Local $version_A[5][2] = [['Script Starting Version', 'v' & @AutoItVersion], _
    ['Stable Version', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'Version')], _
    ['Stable InstallDir', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'InstallDir')], _
    ['Beta Version', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'betaVersion')], _
    ['Beta InstallDir', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'betaInstallDir')]]
    Return $version_A
EndFunc   ;==>_getAutoitVersion
Edited by Xenobiologist

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites



Hi,

I sometimes need this func for debugging and to get information from beginners to help them easily. :)

#include<Array.au3>
Global $versions = _getAutoitVersion()
_ArrayDisplay($versions)

;===============================================================================
; Function Name:   _getAutoitVersion()
; Description::    Collecting Autoit Versions
; Parameter(s):    -
; Requirement(s):  -
; Return Value(s): Array with
;                    [0][0] = Script Starting Version    , [0][1] = version 
;                    [1][0] = Stable Version            , [1][1] = version 
;                    [2][0] = Stable InstallDir        , [2][1] = path 
;                    [3][0] = Beta Version            , [3][1] = version or ''
;                    [4][0] = Beta InstallDir            , [4][1] = path or ''
; Author(s): Xenobilogist
;===============================================================================

Func _getAutoitVersion()
    Local $version_A[5][2] = [['Script Starting Version', 'v' & @AutoItVersion], _
    ['Stable Version', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'Version')], _
    ['Stable InstallDir', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'InstallDir')], _
    ['Beta Version', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'betaVersion')], _
    ['Beta InstallDir', RegRead('HKLM\SOFTWARE\AutoIt v3\AutoIt', 'betaInstallDir')]]
    Return $version_A
EndFunc   ;==>_getAutoitVersion
That won't work for any of us that don't use the installers. Better to get the path and then use FileGetVersion(). I have a similar function that I use and I agree it does come in handy.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0