Sign in to follow this  
Followers 0
zaky324

How does ControlClick function work?

16 posts in this topic

Don't understand how it works. Need a little support :).

Share this post


Link to post
Share on other sites



Your question is so broad. Be specific.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

hmm, basically i don't know how to get it to work/

Share this post


Link to post
Share on other sites

May be the help file helps?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

What have you coded so far? What's the return value of ControlClick?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

autoit window info doesnt work on browser button does it lol.

Share this post


Link to post
Share on other sites

Please be as specific as possible!

What Browser to you use (IE, FF, Chrome ..)?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

i have IE, FF, Chrome. I'll use any browser that is capable of working with the function ''ControlClick''. Unless there aren't any lol.

Edited by zaky324

Share this post


Link to post
Share on other sites

I would suggest IE. Please hava a look at the builtin IE UDF. Functions _IEFormSubmit or _IEAction($o_object, "click") should do what you want.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

where do i find info on those functions?

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

whats $o_object and how you find it?

Edited by zaky324

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

View Google's source, find the object's name you want. Get object by name.

Example:

#include<IE.au3>
$oIE = _IECreate("www.google.com")
$oForm = _IEFormGetObjByName($oIE, "f")
$oInput = _IEFormElementGetObjByName($oForm, "q")
_IEFormElementSetValue($oInput, "http://www.autoitscript.com/autoit3/docs/functions/")
Send("{ENTER}")
Edited by rogue5099

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

i think ill stick with mouseclick, 1 more question. How do you set up a function that loops continuously until the set coordinates have the set pixel color? btw you guys are great help, im glad u guys are helping a complete noob like me.

Edited by zaky324

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

Global $xCoordinate = x        ;Replace with x coordinate
Global $yCoordinate = y        ;Replace with y coordinate
Global $PixelColour = 000000      ;Replace with desired colour
Global $Pixel
Do
    $Pixel = PixelGetColor($xCoordinate, $YCoordinate)
Until Hex($Pixel, 6) = $PixelColour
Msgbox(0,"Colour Found", "The requested colour, "&$PixelColour&" was found at the coordinates of ("&$xCoordinate&","&$yCoordinate&").")

I haven't tested that one but it should do it.

Edited by Mikeman27294

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

am i suppose to leave Global $Pixel blank? how does this ''Until Hex($Pixel, 6) = $PixelColour" decide when the coordinate has the set color? shouldnt there be some coordinates on that line too? and how do you find the top/left/bottom/right coords for pixelsearch?

Edited by zaky324

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