Sign in to follow this  
Followers 0
stuka

...

5 posts in this topic

#1 ·  Posted (edited)

.

Edited by stuka

Share this post


Link to post
Share on other sites



Simple way... Label + GUIGetMsg() + ShellExecute()


[center]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.[/center]

Share this post


Link to post
Share on other sites

maybe change the color whent the mouse is over it

or change cursor :mellow:


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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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


[center]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.[/center]

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