Sign in to follow this  
Followers 0
PainTain

Defaultbrowser Udf + _Getregsubkeys Function

16 posts in this topic

#1 ·  Posted (edited)

Hello,

After I posted my UDF in the german AutoIt forum I decided to share it with you also.

At first, I excuse me for my english - I'm german but I hope you will forgive me :)

Now, here is the DefaultBrowser - UDF:

#include-once
#include <Array.au3>

Global Const $REG_X86_HKCU_DB = "HKCU\Software\Clients\StartMenuInternet"
Global Const $REG_X86_HKLM_IB = "HKLM\Software\Clients\StartMenuInternet"

Global Const $REG_X64_HKCU_DB = "HKCU64\Software\Clients\StartMenuInternet"
Global Const $REG_X64_HKLM_IB = "HKLM64\Software\Clients\StartMenuInternet"

; #FUNCTION# ====================================================================================================================
; Name ..........: _GetDefaultBrowser
; Description ...: Returns the name of the default browser.
; Syntax ........: _GetDefaultBrowser()
; Parameters ....:
; Return values .: Success: Returns the name of the default browser.
;                   Failure: Returns 0
; Author ........: PainTain @ Autoit.de (Christoph H.)
; Related .......: _GetInstalledBrowser()
; Link ..........: http://www.autoitscript.com/forum/topic/146780-defaultbrowser-udf-getregsubkeys-function/
; ===============================================================================================================================
Func _GetDefaultBrowser()
    If @CPUArch = "X86" Then
        $sUserDefaultBrowserX86 = RegRead($REG_X86_HKCU_DB,"")
        If @error Then
            Return 0
        Else
            $asInstalledBrowserX86 = _GetRegSubKeys($REG_X86_HKLM_IB)
            $iIndexOfDB = _ArraySearch($asInstalledBrowserX86,$sUserDefaultBrowserX86)
            $sFullName = RegRead($REG_X86_HKLM_IB & "\" & $asInstalledBrowserX86[$iIndexOfDB],"")
            Return $sFullName
        EndIf
    ElseIf @CPUArch = "X64" Then
        $sUserDefaultBrowserX64 = RegRead($REG_X64_HKCU_DB,"")
        If @error Then
            Return 0
        Else
            $asInstalledBrowserX64 = _GetRegSubKeys($REG_X64_HKLM_IB)
            $iIndexOfDB = _ArraySearch($asInstalledBrowserX64,$sUserDefaultBrowserX64)
            $sFullName = RegRead($REG_X64_HKLM_IB & "\" & $asInstalledBrowserX64[$iIndexOfDB],"")
            Return $sFullName
        EndIf
    Else
        Return 0
    EndIf
EndFunc


; #FUNCTION# ====================================================================================================================
; Name ..........: _GetInstalledBrowser
; Description ...: Returns an array with the names of installed browser.
; Syntax ........: _GetInstalledBrowser()
; Parameters ....: None
; Return values .: Success: Returns an array with the names of installed browsers (See remarks!).
;                   Failure: Returns 0
; Author ........: PainTain @ Autoit.de (Christoph H.)
; Remarks .......: Index 0 of the array contains the number of installed browsers.
; Related .......: _GetDefaultBrowser()
; Link ..........: http://www.autoitscript.com/forum/topic/146780-defaultbrowser-udf-getregsubkeys-function/
; ===============================================================================================================================
Func _GetInstalledBrowser()
    If @CPUArch = "X86" Then
        Local $aListFullX86[2]

        $aInstalledBrowserX86 = _GetRegSubKeys($REG_X86_HKLM_IB)
        _ArrayAdd($aListFullX86,$aInstalledBrowserX86[0])
        For $i = 0 To UBound($aInstalledBrowserX86) - 1
            $sReadBrowserNameX86 = RegRead($REG_X86_HKLM_IB & "\" & $aInstalledBrowserX86[$i],"")
            _ArrayAdd($aListFullX86, $sReadBrowserNameX86)
            ReDim $aListFullX86[UBound($aListFullX86)]
        Next
        _ArrayDelete($aListFullX86, 0)
        _ArrayDelete($aListFullX86, 0)
        Return $aListFullX86
    ElseIf @CPUArch = "X64" Then
        Local $aListFullX64[2]

        $aInstalledBrowserX64 = _GetRegSubKeys($REG_X64_HKLM_IB)
        _ArrayAdd($aListFullX64,$aInstalledBrowserX64[0])
        For $i = 1 To UBound($aInstalledBrowserX64) - 1
            $sReadBrowserNameX64 = RegRead($REG_X64_HKLM_IB & "\" & $aInstalledBrowserX64[$i],"")
            _ArrayAdd($aListFullX64,$sReadBrowserNameX64)
            ReDim $aListFullX64[UBound($aListFullX64)]
        Next
        _ArrayDelete($aListFullX64, 0)
        _ArrayDelete($aListFullX64, 0)
        Return $aListFullX64
    Else
        Return 0
    EndIf
EndFunc


; #FUNCTION# ====================================================================================================================
; Name ..........: _GetRegSubKeys
; Description ...: Returns an array with the sub keys of a given registry key.
; Syntax ........: _GetRegSubKeys($sHKEY)
; Parameters ....: $sHKEY               - The registry key
; Return values .: Success: Returns an array with the Subkeys (See remarks!).
;                   Failure: Returns 0.
; Author ........: PainTain @ Autoit.de (Christoph H.)
; Remarks .......: Index 0 of the array contains the number of the read keys.
; Link ..........: http://www.autoitscript.com/forum/topic/146780-defaultbrowser-udf-getregsubkeys-function/
; ===============================================================================================================================
Func _GetRegSubKeys($sHKEY)
    Local $i = 1
    Local $aSubKeys[$i]

    Do
        $sSubKey = RegEnumKey($sHKEY,$i)
        If @error Then Return 0
        ReDim $aSubKeys[UBound($aSubKeys)]
        _ArrayAdd($aSubKeys,$sSubKey)
        $i += 1
    Until RegEnumKey($sHKEY, $i) = "" And @error = "-1"
    _ArrayInsert($aSubKeys, 0, UBound($aSubKeys) - 1)
    _ArrayDelete($aSubKeys, 1)
    Return $aSubKeys
EndFunc

This UDF isn't finished yet, I will update it in the next few days.

It is finished now!

It is not finished at all :(

wakillon said that browser like SrWare Iron does not get listed, but I know the reason for it.

I'm working on it :)

The needed "_GetRegSubKeys" function is alreay included or look read the next few lines ;)

For the "_GetInstalledBrowser" I needed a function to read sub keys of registry-keys.

BugFix (from AutoIt.de) wrote such a function, but it doesn't work for me, so I wrote my own.

And now I want to share it with you ;)

#include-once
#include <Array.au3>

; #FUNCTION# ====================================================================================================================
; Name ..........: _GetRegSubKeys
; Description ...: Returns an array with the sub keys of a given registry key.
; Syntax ........: _GetRegSubKeys($sHKEY)
; Parameters ....: $sHKEY               - The registry key
; Return values .: Success: Returns an array with the Subkeys (See remarks!).
;                   Failure: Returns 0.
; Author ........: PainTain @ Autoit.de (Christoph H.)
; Remarks .......: Index 0 of the array contains the number of the read keys.
; Link ..........:
; ===============================================================================================================================
Func _GetRegSubKeys($sHKEY)
    Local $i = 1
    Local $aSubKeys[$i]

    Do
        $sSubKey = RegEnumKey($sHKEY,$i)
        If @error Then Return 0
        ReDim $aSubKeys[UBound($aSubKeys)]
        _ArrayAdd($aSubKeys,$sSubKey)
        $i += 1
    Until RegEnumKey($sHKEY, $i) = "" And @error = "-1"
    _ArrayInsert($aSubKeys, 0, UBound($aSubKeys) - 1)
    _ArrayDelete($aSubKeys, 1)
    Return $aSubKeys
EndFunc

If someone find a bug, please post it :D

Otherwise, I wish you a good day and especially

Merry Christmas and a good new year!

Greets from Austria

DefaultBrowser.au3

_GetRegSubKeys.au3

Edited by PainTain

Share this post


Link to post
Share on other sites



Natürlich vergeben wir Dir ;)

Greetings from Austria too


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Seems to work. Thanks for sharing.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Seems to work. Thanks for sharing.

Thanks you for the feedback.

I will update the DefaultBrowser-UDF in the next few days, so that the full name of the browser is read from the registry.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I just tried _GetInstalledBrowser on Windows 7 x64 and it returned a blank string. It should be Opera.

This is how I do it with WinAPIEx.

#include <APIConstants.au3> ; Download from http://www.autoitscript.com/forum/topic/98712-winapiex-udf/ by Yashied.
#include <WinAPIEx.au3> ; Download from http://www.autoitscript.com/forum/topic/98712-winapiex-udf/ by Yashied.

MsgBox(4096, '', _GetDefaultBrowser() & @CRLF)

; Get the default browser of the system.
Func _GetDefaultBrowser()
    Return _WinAPI_AssocQueryString('.html', $ASSOCSTR_EXECUTABLE)
EndFunc   ;==>_GetDefaultBrowser
Edited by guinness

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

I just tried _GetInstalledBrowser on Windows 7 x64 and it returned a blank string. It should be Opera.

This is how I do it with WinAPIEx.

#include <APIConstants.au3> ; Download from http://www.autoitscript.com/forum/topic/98712-winapiex-udf/ by Yashied.
#include <WinAPIEx.au3> ; Download from http://www.autoitscript.com/forum/topic/98712-winapiex-udf/ by Yashied.

MsgBox(4096, '', _GetDefaultBrowser() & @CRLF)

; Get the default browser of the system.
Func _GetDefaultBrowser()
    Return _WinAPI_AssocQueryString('.html', $ASSOCSTR_EXECUTABLE)
EndFunc   ;==>_GetDefaultBrowser

That is what I want to fix.

But I haven't enough time for AutoIt at the moment. I'm busy because of the school :(

But, thanks for this suggestion.

I will update it if I have time for it, on Thursday I will have time for it.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

SRWare Iron is not detected as browser with _GetInstalledBrowser func :(

Edit : you can try like this

$sRegKey = 'HKLM\SOFTWARE\Clients\StartMenuInternet'

$i=0
While 1
    $i += 1
    $sKey = RegEnumKey ( $sRegKey, $i )
    If @error <> 0 Then ExitLoop
    $sRegVal = StringReplace ( RegRead ( $sRegKey & '\' & $sKey & '\shell\open\command', '' ), '"', '' )
    ConsoleWrite ( '+ Browser Path : ' & $sRegVal & @Crlf )
    $aSplit = StringSplit ( $sRegVal, '\' )
    ConsoleWrite ( '! Browser Name : ' & $aSplit[UBound ($aSplit)-2] & @Crlf )
WEnd
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#Updated _GetInstalledBrowser!

Finally got some time for it.

Now it should return the full name of any browser.

But please keep in mind, there could be browser what don't create the default registry entrys.

Finally got some time for it.

Now I'm working on the _GetInstalledBrowser function.

Greetz

Share this post


Link to post
Share on other sites

#Updated all three function!

I rework and rewrite some parts of them completely.

They are finished now, have fun with it :)

Both downloads are updated to!

Greets

Share this post


Link to post
Share on other sites

My browser, SrWare Iron ( from Deutschland! ;) ), is still not in the list return by _GetInstalledBrowser function ! ( tested on Win7X86)

I have edited my suggestion in Post #7 because all slashes strangely disappeared ! :blink:

Now you can try it...


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

My browser, SrWare Iron ( from Deutschland! ;) ), is still not in the list return by _GetInstalledBrowser function ! ( tested on Win7X86)

I have edited my suggestion in Post #7 because all slashes strangely disappeared ! :blink:

Now you can try it...

I see...

Mhh, SrWare Iron might not write the default registry entrys like FF, Chrome or IE.

I'm installing SrWare Iron right now and then I will have a look at the registry.

I will customize the UDF for this and maybe for other popular browser, if they don't work.

Share this post


Link to post
Share on other sites

I don't use it, but Maxathon is becoming increasingly popular too.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

Wtith my example SRWare Iron, Mozilla Firefox, Chrome, Internet Explorer, Opera, Safari are listed !


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

I don't use it, but Maxathon is becoming increasingly popular too.

Thanks for your post, I will have a look at this browser too.

Pain.

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

I think you will be able to find that information by searching around on a popular search engine.

Edit: Just saw wakillon's post.

Edited by guinness

_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

I made ​​a mistake

My example works only if each listed browser has already been defined once as default browser :oops:


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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