Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 13:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIt ControlClick

Discussion on AutoIt ControlClick within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
AutoIt ControlClick

Servus,

also ich möchte mir nen kleinen Bot für nen Browsergame basteln, der aber im
Hintergrund läuft.

Ich habs mit ControlClick versucht, hab schon ziemlich viel gegooglet und
auch hier die SuFu benutzt, aber nix befunden was mir helfen würde.

Wenn ich das Script starte macht er überhaupt nichts. Werder wenn das
Fenster maximiert oder minimiert ist.
Die Coords sind genau, hab ich mit dem AutoIt v3 WIndow Info Tool
ausgelesen.

Also woran könnte es liegen?

Code:
Opt("WinWaitDelay",100)
Opt("WinDetectHiddenText")
Opt("MouseCoordMode", 0)
Opt("MouseClickDownDelay", 80)
Opt("MouseClickDelay", 130)

Sleep (3000)
_WinWaitActivate("KapiBados - Mozilla Firefox","")


ControlClick("KapiBados - Mozilla Firefox", "[CLASS:MozillaWindowClass; INSTANCE:2]", "","left",1,801,473)
ControlClick("KapiBados - Mozilla Firefox", "[CLASS:MozillaWindowClass; INSTANCE:2]", "","left",1,840,473)
ControlClick("KapiBados - Mozilla Firefox", "[CLASS:MozillaWindowClass; INSTANCE:2]", "","left",1,879,473)
ControlClick("KapiBados - Mozilla Firefox", "[CLASS:MozillaWindowClass; INSTANCE:2]", "","left",1,918,473)
ControlClick("KapiBados - Mozilla Firefox", "[CLASS:MozillaWindowClass; INSTANCE:2]", "","left",1,957,473)
ControlClick("KapiBados - Mozilla Firefox", "[CLASS:MozillaWindowClass; INSTANCE:2]", "","left",1,996,473)


Func _WinWaitActivate($title,$text,$timeout=0)
	WinWait($title,$text,$timeout)
	If Not WinActive($title,$text) Then WinActivate($title,$text)
	WinWaitActive($title,$text,$timeout)
EndFunc

mfg
boxxiebabee is offline  
Old 06/03/2010, 09:04   #2
 
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
Probier mal den Fenstertext teil leer lässt, ich weiss nicht genau ob das da mit [CLASS:...] wirklich funktioniert...
.nAno is offline  
Old 06/03/2010, 19:56   #3

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
meinst du den Fenstertitel? also KapiBados - Mozilla Firefox?
Oder CLASS & INSTANCE?
Ersteres wäre doch etwas doof, dann würde er nicht wissen wo?
Und zweiteres hab ich bereits versucht, vergebens.

mfg.
boxxiebabee is offline  
Old 06/03/2010, 20:42   #4
 
elite*gold: 0
Join Date: Aug 2009
Posts: 74
Received Thanks: 13
Also an dem ControlClick ist nix falsch.

Quote:
ControlClick("Google - Mozilla Firefox" ,"[CLASS:MozillaWindowClass; INSTANCE:2]","","left",1,546,65)

Versuchs mal so villt gehts ja


Quote:
if WinActive($title,"") then
;Hier deine ControlClick Befehle
else
ShellExecute("DeineSeite.htm")
WinWaitActive($title,"")
EndIf
sido47 is offline  
Reply


Similar Threads Similar Threads
AutoIt ControlClick
10/15/2011 - AutoIt - 6 Replies
Heyho ihr da ^^ und zwar geht es mir um Folgendes: Ich möchte bei einem Internetfenster (Firefox) einen Button gedrückt haben, und zwar mit ControlClick hab ich mir gedacht geht das ganz gut ^^ Hab grad n wenig rumprobiert und bin dann zu folgendem gekommen (er soll auf einen Button klicken wo "Play Game" draufsteht.. das is schonmal Problem 1) : while 1 WinActive("Name des Fensters") ControlClick ( "Name des Fensters", "", "", "") ;(Habe dort bei Text auch mal play game oder...
controlclick?
04/15/2010 - AutoIt - 9 Replies
mal ne frage irgendwie bekomme ich keinen controlclick hin ControlClick ("METIN2","", ]]]) was da falsch?
[AutoIT] ControlClick an Metin?!
11/08/2009 - AutoIt - 4 Replies
Hey Leute, is es möglich mit ControlClick iwie Metin zu beeinflussen? Oder gibt´s irgendwelche UDFs? Das Problem is ja nämlich, dass Metin keine ControlIDs hat... Danke LG Manlius
ControlClick (AutoIt) in Runes of Magic
05/05/2009 - General Gaming Discussion - 2 Replies
Hello @ all, Since 2 days I looking for a working command to click in runesofmagic. With ControlClick I do not get a good result, it means it do not work. Seit 2 Tagen versuche ich ControlClick auch für Runes of Magic zum laufen zu bekommen jedoch ohne Erfolg. ControlClick("Runes of Magic","","Radiant Arcana0","left",1,950,250) ControlClick("Runes of Magic","","Radiant Arcana0")...
ControlClick
01/10/2009 - GW Bots - 47 Replies
Hi Leute, Also, ich wollte mal einen Bot schreiben der im Hintergrund läuft, sodass ich nebenbei auf einem anderen Account spielen kann. Nun habe ich folgendes Problem: Die Idee war folgende: ich wollte den Bot ganz einfach alle Taschen des Inventars öffnen lassen und ihn dann per ControlClick wieder schließen lassen. Dies soll für mich erstmal eine Art Übung sein, um später eine Sellfunc. drauß zu machen. Nun ist meine Frage.. Wieso passiert da nichts? Er öffnet nur das Inventar,...



All times are GMT +1. The time now is 13:09.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.