Sign in to follow this  
Followers 0
HeidiR

Create a link using GUICtrlCreateIcon

3 posts in this topic

Hi All,

Is it possible to create a link, using GUICtrlCreateIcon, that can execute a command when clicked?

HeidiR


HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>

$hGUI = GUICreate("Test GUI")
$icon = GUICtrlCreateIcon("shell32.dll", 4, 20, 20)

GUISetState()


While 1
    $iMsg = GUIGetMsg()
    Select
        Case $iMsg = $icon
            ShellExecute("http://www.autoitscript.com/forum")
        Case $iMsg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
Wend

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

$hGUI = GUICreate("Test GUI")
$icon = GUICtrlCreateIcon("shell32.dll", 4, 20, 20)

GUISetState()


While 1
    $iMsg = GUIGetMsg()
    Select
        Case $iMsg = $icon
            ShellExecute("http://www.autoitscript.com/forum")
        Case $iMsg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
Wend

Perfect! Thanks for your help.


HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/

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