armoros Posted April 16, 2012 Posted April 16, 2012 My friends i would like to know how to make a link to open in the default browser.. i.e. i have a gui with a button named autoit.com what to use to open that link. thank you [font="verdana, geneva, sans-serif"] [/font]
Skitty Posted April 16, 2012 Posted April 16, 2012 My friends i would like to know how to make a link to open in the default browser..i.e. i have a gui with a button named autoit.com what to use to open that link.thank youTry Shellexecute("http://Google.com")
somdcomputerguy Posted April 16, 2012 Posted April 16, 2012 (edited) Try Shellexecute("http://Google.com")That will work just fine. It's very similar to what I was going to post, in fact, that's why this rather useless, yet confirming, post exists.. Edited April 16, 2012 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
armoros Posted April 16, 2012 Author Posted April 16, 2012 Thank you both ApudAngelorum and somdcomputerguy... [font="verdana, geneva, sans-serif"] [/font]
Chimaera Posted April 16, 2012 Posted April 16, 2012 (edited) Couple of options from the wiki for the default browser if needed _GetDefBrowser() ~ Author JScript ; Check to see which browser is the default. MsgBox(4096, "Default browser", "My default browser is: " & _GetDefBrowser()) Func _GetDefBrowser() Local $sRegRead = RegRead("HKCRhttpshellopencommand", "") Return StringRegExpReplace($sRegRead, "(.*?x22)(.*?[/])*(.*?)(x22.*?z)", "$3") ; << Credits to SmOke_N EndFunc ;==>_GetDefBrowser [/font][/left] Or _GetDefaultBrowser() ~ Author - guinness ; Get the default browser of the system. #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. ConsoleWrite(_GetDefaultBrowser() & @CRLF) Func _GetDefaultBrowser() Return _WinAPI_AssocQueryString(".html", $ASSOCSTR_EXECUTABLE) EndFunc ;==>_GetDefaultBrowser See the link in my Sig for more examples Edited April 16, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices()
armoros Posted April 16, 2012 Author Posted April 16, 2012 Thank you Chimaera very useful... [font="verdana, geneva, sans-serif"] [/font]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now