|
You last visited: Today at 01:19
Advertisement
[HELP] ControlClick in Google chrome ?
Discussion on [HELP] ControlClick in Google chrome ? within the AutoIt forum part of the Coders Den category.
06/23/2014, 12:22
|
#1
|
elite*gold: 0
Join Date: Feb 2014
Posts: 229
Received Thanks: 66
|
[HELP] ControlClick in Google chrome ?
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
|
|
|
06/23/2014, 15:27
|
#2
|
elite*gold: 15
Join Date: Aug 2012
Posts: 3,041
Received Thanks: 6,394
|
Code:
ControlClick ( "title", "text", controlID [, button = "left" [, clicks = 1 [, x [, y]]]] )
Most of the time you don't need the text or the controlID property. Here is an example:
Code:
$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
|
|
|
06/23/2014, 17:30
|
#3
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
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"))
|
|
|
06/23/2014, 19:13
|
#4
|
elite*gold: 0
Join Date: Feb 2014
Posts: 229
Received Thanks: 66
|
Edit: I got it , #closerequest
|
|
|
06/23/2014, 20:07
|
#5
|
elite*gold: 15
Join Date: Aug 2012
Posts: 3,041
Received Thanks: 6,394
|
Quote:
Originally Posted by alpines
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"))
|
That's PHP style o_O AutoIT really does integrate everything it wants Anyways, thanks for the info
|
|
|
|
Similar Threads
|
Spiel Blockt ControlClick//Game is blocking ControlClick? any Idea?
01/02/2014 - AutoIt - 6 Replies
GAME: TALES OF PIRATES II
----------------------
GERMAN:
Hiho leute .... bin gerade eig, fertig mit pointern etc.. zu finden und wollte gerade einen test run machen wo mein chara einfach mal ne runde läuft so und nun ist das, dass problem das, Tales of Pirates II , ControlClick blockiert -.- ... mir wurden "MouseEvents" vorgeschlagen, Ok gehen aber das sind ja nur link/rechts klicks ... brauche aber das die Maus sich bewegt und ich dabei im hintergrund noch was machen kann sowie...
|
Google Chrome
09/09/2013 - Technical Support - 2 Replies
hey leute,
habe ein kleines Problem. Ich hatte bei Crome immer wenn ich einen neuen Tab aufgemacht habe, diese Seite mit meinen favoriten, also wo ich am meisten drauf war. Seid gestern aber kommt dort immer die seite Delta Search
wie kann ich das beheben
bin für jede Antwort dankbar :)
|
Google Chrome
02/21/2012 - Technical Support - 10 Replies
Hey Leute, wie kann ich Google Chrome Updater exe downloaden?.
Da ich google chriome nicht neu installieren kann, oder löschen kann
hatte dass prbo schonma
Aber brauche nun wiede rUpdater exe.
|
Google Chrome
12/06/2011 - Technical Support - 10 Replies
Hey habe alles von meinen PC runter geschmissen , ausversehene auch GOOGLE CHROME. jezz will ichs neu downloaden und dann steht da : If u have Google Chrome . Also dass ich es auf meinen pc shcon habe . aber finde es nirgendwo und will damit wieder ins INET . wie kann ich es löschen?
|
Google Chrome
04/28/2011 - Technical Support - 5 Replies
Hallo und zwar heb ich ein problem.
Immer wenn ich in Google chrome einen neuen tab öffnen öffnet sich Browser Search Start und da wollte ich frage wie ich das änder kann.
Und jetzt sagt nicht Chrome ist scheiße benutz lieber Firefox. Nein werde ich nicht!
|
All times are GMT +2. The time now is 01:19.
|
|