blizzedout Posted June 25, 2005 Share Posted June 25, 2005 Quick question, is it possible to add a link that you can click on into the GUI? Or do i need to make a button that opens up IE and searches the site. Link to comment Share on other sites More sharing options...
therks Posted June 25, 2005 Share Posted June 25, 2005 (edited) No. Yes... kinda. You can create a pseudo link by changing the font style of a label. Something like this: $lb = GuiCtrlCreateLabel('Google', 0, 0, 60, 15) GuiCtrlSetColor(-1, 0x0000ff) GuiCtrlSetFont(-1, 8.5, 400, 2) GuiCtrlSetTip(-1, 'http://www.google.com') Untested, I just wrote that from memory. Then in your main loop you can do something like this: If $GuiGetMsg = $lb Then Run(@ComSpec & ' /c start "" "http://www.google.com"') EndIf Problem with this of course is that you can't place a "link" in the middle of some text you have going in a label. Not unless you want to try and position another label in just the right spot. That could be fun. Edited June 25, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
blizzedout Posted June 25, 2005 Author Share Posted June 25, 2005 No. Yes... kinda.You can create a pseudo link by changing the font style of a label.Something like this:$lb = GuiCtrlCreateLabel('Google', 0, 0, 60, 15) GuiCtrlSetColor(-1, 0x0000ff) GuiCtrlSetFont(-1, 8.5, 400, 2) GuiCtrlSetTip(-1, 'http://www.google.com')Untested, I just wrote that from memory.Then in your main loop you can do something like this:If $GuiGetMsg = $lb Then Run(@ComSpec & ' /c start "" "http://www.google.com"') EndIfProblem with this of course is that you can't place a "link" in the middle of some text you have going in a label. Not unless you want to try and position another label in just the right spot. That could be fun.<{POST_SNAPBACK}>Yea i just want people to be able to click the link http://www.blizzedout.comScreenShot Link to comment Share on other sites More sharing options...
therks Posted June 25, 2005 Share Posted June 25, 2005 Ah, then the code I provided should work well. Was there still a problem? My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
blizzedout Posted August 26, 2005 Author Share Posted August 26, 2005 Yea i just want people to be able to click the link http://www.blizzedout.comScreenShot<{POST_SNAPBACK}>it worked Link to comment Share on other sites More sharing options...
therks Posted August 26, 2005 Share Posted August 26, 2005 Wow, talk about your delayed response times. Glad to hear it worked though. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Gigglestick Posted August 26, 2005 Share Posted August 26, 2005 (edited) I feel significantly less intelligent having read the page that you got your sig from, Saunders. Oy! Although I did like some of the Engineer jokes. Edited August 26, 2005 by c0deWorm My UDFs: ExitCodes 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