Moderators SmOke_N Posted November 14, 2008 Moderators Posted November 14, 2008 Simple way... Label + GUIGetMsg() + ShellExecute() Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
torels Posted November 14, 2008 Posted November 14, 2008 maybe change the color whent the mouse is over it or change cursor Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org
torels Posted November 14, 2008 Posted November 14, 2008 no just do when mouse's x > label's x AND < (label's x + label's width) And mouse's y > label's y AND < (label's y + label's height) guictrlsetcolor($yourlabel, $somecolor) Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org
Moderators SmOke_N Posted November 14, 2008 Moderators Posted November 14, 2008 The easiest way IMO:; A bit of effort, and some code goes a long way $h_gui = GUICreate("My Gui") $i_label_autoit_link = _GUICtrl_HyperLinkCreate("Click Me", 10, 10) GUISetState() While 1 Switch GUIGetMsg() Case -3 Exit Case $i_label_autoit_link _GUICtrl_HyperLinkExecute($i_label_autoit_link, "http://www.autoitscript.com/forum/index.php") EndSwitch WEnd Func _GUICtrl_HyperLinkCreate($s_text, $i_x, $i_y, $i_w = Default, $i_h = Default, $i_style = -1, $i_exstyle = -1) Local $i_ret = GUICtrlCreateLabel($s_text, $i_x, $i_y, $i_w, $i_h, $i_style, $i_exstyle) GUICtrlSetCursor(-1, 0) GUICtrlSetColor(-1, 0x0000FF) GUICtrlSetFont(-1, 9, 400, 4) Return $i_ret EndFunc Func _GUICtrl_HyperLinkExecute($i_ctrl, $s_url, $i_color = 0x6600CC) GUICtrlSetColor($i_ctrl, $i_color) Return ShellExecute($s_url) EndFunc Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
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