autoitquestion Posted April 9, 2011 Share Posted April 9, 2011 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 9, 2011 Share Posted April 9, 2011 Maybe this will help, - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
UEZ Posted April 9, 2011 Share Posted April 9, 2011 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 HielkedeHaan and llc 2 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 More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 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? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 9, 2011 Share Posted April 9, 2011 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. Link to comment Share on other sites More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 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 More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 9, 2011 Share Posted April 9, 2011 (edited) pls adviceRead this, ControlClick. The AutoIt Window Info tool will give you the details (the window title, the control ID) you need. Good luck! Edited April 9, 2011 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 9, 2011 Share Posted April 9, 2011 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. Link to comment Share on other sites More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 Or just send {RSHIFT}+{TAB}? Link to comment Share on other sites More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 If I am doing Send("{RSHIFT}{TAB}"), so it send RSHIFT and then send TAB, but I wish it will send those buttons together.. Link to comment Share on other sites More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 SUCCESS!!!!!!!!!!!!! So happy thanks you all I send it Send("{RSHIFT}+{TAB}") I'll ask if I'll have more problems :-) Link to comment Share on other sites More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 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... Link to comment Share on other sites More sharing options...
autoitquestion Posted April 9, 2011 Author Share Posted April 9, 2011 I used in WinClose-thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now