Jump to content
Sign in to follow this  
autoitquestion

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

I dont need create label link button-just click on given label link button..

I already have it in specific application

So-I did not understand your solution, since your create the application

Can you explain more pls?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I did not success do it with Control click, thus, I ask you if there is more any solution

In MouseClick-what are x and y arguments? how can see right x and y arguments in AutoIt info window?

Thanks again for your help!

Noa

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...