Jump to content

click on link label


Recommended Posts

Here another fast hack:

#include <GUIConstantsEx.au3>
$hGUI = GUICreate("Test", 300, 200)
$label = GUICtrlCreateLabel("www.autoitscript.com", 50, 80, 200, 30)
GUICtrlSetFont(-1, 16, 100, 4)
GUICtrlSetColor(-1, 0x000000)
GUISetState()
$set_1 = False
$set_2 = False

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            ExitLoop
        Case $label
            ShellExecute("http://www.autoitscript.com") ;open web site when clicking label
    EndSwitch

    ;change color of label when mouse hovers it
    $array = GUIGetCursorInfo($hGUI)
    If $array[4] = $label Then
        If Not $set_1 Then ;avoid flickering
            GUICtrlSetColor(-1, 0x0000FF); RRGGBB
            $set_1 = True
            $set_2 = False
        EndIf
    Else
        If Not $set_2 Then ;avoid flickering
            GUICtrlSetColor(-1, 0x000000)
            $set_1 = False
            $set_2 = True
        EndIf
    EndIf
WEnd
GUIDelete()

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

Those details of this button:

Basic Window Info-

Title: GetHelp

Class: WindowsForms10.window.8.app.0.33c0d9d

Basic Control Info-

Class: WindowsForms10.STATIC.app.0.33c0d9d

Instance: 1

More relevant control details-

Name: linkLabelExport

Text: Export Help

pls advice

Thanks ahead!

Noa

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...