Jump to content
Sign in to follow this  
autoitquestion

click on link label

Recommended Posts

autoitquestion

Hi,

I am wish to click on link label. not just regular button

Am I need use ControlClick or other function (if other, so which?)

Thanks,

Noa

Share this post


Link to post
Share on other sites
somdcomputerguy

Maybe this will help,


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
UEZ

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

  • Like 1

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
autoitquestion

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
somdcomputerguy

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

Ah, sorry for the misunderstanding. I believe then you need to use MouseClick or ControlClick.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
autoitquestion

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
autoitquestion

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
somdcomputerguy

pls advice

Read this, ControlClick. The AutoIt Window Info tool will give you the details (the window title, the control ID) you need. Good luck!

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
autoitquestion

How can I send shift+tab? I think it will solve my problem...

Is it: Send("+{TAB}") or: Send("^+{TAB}") or other?...

Pls help me..

Noa

Share this post


Link to post
Share on other sites
somdcomputerguy

Click the mouse or summary tab in the tool to get coords.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
autoitquestion

Or just send {RSHIFT}+{TAB}?

Share this post


Link to post
Share on other sites
autoitquestion

If I am doing Send("{RSHIFT}{TAB}"), so it send RSHIFT and then send TAB, but I wish it will send those buttons together..

Share this post


Link to post
Share on other sites
autoitquestion

SUCCESS!!!!!!!!!!!!!

So happy

thanks you all

I send it Send("{RSHIFT}+{TAB}")

I'll ask if I'll have more problems :-)

Share this post


Link to post
Share on other sites
autoitquestion

Now, I have another problem: did not success send ALT+F4 to close window...

I tried: Send("{ASC F4}") and Send("{LALT}+{F4}")

Pls advice...

Share this post


Link to post
Share on other sites
autoitquestion

I used in WinClose-thanks again

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  

×