Hi, I want an example that use controlclick on pixels..in google chrome ...Idk what I have to put in controlID ... sorry my english sucks :(
ControlClick ( "title", "text", controlID [, button = "left" [, clicks = 1 [, x [, y]]]] )
$title = "Title of the target Google Chrome tab"
$button = "Mouse button I want to simulate" ;left,right,middle,main,menu,primary,secondary
$numOfClicks = "1" ;number of times to click, 1 should do it most of the time
$xCoord = "700" ;X Coord of the click
$yCoord = "400" ;Y Coord of the click
$click = ControlClick($title, "", "", $button, $numOfClicks, $xCoord, $yCoord)
MsgBox(0, "Returned " & $click, "ControlClick was " & IIf($click = 1, "successful", "not successful"))
Func IIf($condition, $true, $false)
If $condition Then
Return $true
Else
Return $false
EndIf
EndFunc
MsgBox(64, "MsgBox", (1=2 ? "yes" : "no"))
That's PHP style o_O AutoIT really does integrate everything it wants :p Anyways, thanks for the info :)Quote:
berkay2578 the function IIf became useless in 3.3.10.2 because you are now able to use ternary operators. Example:Code:MsgBox(64, "MsgBox", (1=2 ? "yes" : "no"))