firoki Posted October 8, 2006 Share Posted October 8, 2006 I want to link from the inside of an .Exe file to a web file. So when you clik on the text in the application your browser opens and points you to the file of course. #include <GuiConstants.au3> GuiCreate("Exaple Script", 400, 120) ; TAB GuiCtrlCreateTab(10, 10, 380, 100) GuiCtrlCreateTabItem("One") GuiCtrlCreateLabel("I would like this text as a link", 15, 40) GuiCtrlCreateTabItem("Two") GuiCtrlCreateTabItem("Three") GuiCtrlCreateTabItem("") ; GUI MESSAGE LOOP GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd Hoping somone pitties me enough to help thanks, firoki Link to comment Share on other sites More sharing options...
zcoacoaz Posted October 8, 2006 Share Posted October 8, 2006 (edited) #include <GuiConstants.au3> $Browser = StringSplit(RegRead("HKLM\SOFTWARE\Classes\HTTP\shell\open\command",""),"%") $Browser = $Browser[1] GuiCreate("Exaple Script", 400, 120) ; TAB GuiCtrlCreateTab(10, 10, 380, 100) GuiCtrlCreateTabItem("One") $Link = GuiCtrlCreateLabel("I would like this text as a link", 15, 40, 155) GUICtrlSetColor ( -1, 0x0000ff ) GUICtrlSetFont ( -1, -1, -1, 4 ) GUICtrlSetCursor ( -1, 0 ) GuiCtrlCreateTabItem("Two") GuiCtrlCreateTabItem("Three") GuiCtrlCreateTabItem("") ; GUI MESSAGE LOOP GuiSetState() While 1 Sleep ( 1 ) $msg = GUIGetMsg ( ) If $msg = -3 Then Exit If $msg = $link Then Run ( $Browser & "http://autoitscript.com", "", @SW_SHOW ) WEnd EDIT: I fixed it to use the default browser instead of IE Edited October 8, 2006 by Xenogis [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
firoki Posted October 8, 2006 Author Share Posted October 8, 2006 I hope its not too bold to say... but i love you :"> lol thanks a lot, really i mean it firoki Link to comment Share on other sites More sharing options...
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