Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:38

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

Advertisement



autiit v3 Brauch bischen hilfe

Discussion on autiit v3 Brauch bischen hilfe within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 54
Received Thanks: 5
autiit v3 Brauch bischen hilfe

Moin

brauch bischen hilfe hoffe einer kennt sich mher aus wie ich .

versuch mir grade ein art mini bot zubauen für son bilo game
er soll wen rot is rechte maus klicken wen grün linke nich viel aber ich packs nich
Code:
Winactivate(firefox)
While 1 ;Infinite Loop
Select
Case Hex(PixelGetColor(956,655)) = "0x00FF00" ;The first bar
MouseDown("left")
Sleep(100)
MouseUp("left")
Case Hex(PixelGetColor(956,655)) = "0xFF3300" ;The second bar
MouseDown("right")
Sleep(100)
MouseUp("left")
;Case Hex(PixelGetColor(<x,y>)) = "<>" ;The third bar
;Send("{F12}")
EndSelect
Wend ;
#
ka was hier falsch sein soll
und noch ne frage wen ich mher fenster offen hab ,wie kann ich den die Cursor ID festlegen?


bot sollte am ende ca so ablaufen
er überwacht die stellen wo ich gesagt hab wie 956,655 wen rot oder grün komm klickt er recht oder links je nach frabe,das macht er an mheren stellen
sind 4 punkte die ich überwachen möchte ,nuja mal schauen ob mir wer helfen will und kann

Peace
weedyy is offline  
Old 07/12/2010, 00:54   #2
 
Robin,249's Avatar
 
elite*gold: 137
Join Date: Aug 2009
Posts: 429
Received Thanks: 98
Versuchs mal so:

PHP Code:
While 1
IF PixelGetColor(956,655) = 0x00FF00 Then
    MouseClick
("left"956,655)
ElseIF 
PixelGetColor(956,655) = 0xFF3300 Then
    MouseClick
("right"956,655)
EndIf
Sleep(50)
WEnd 
Robin,249 is offline  
Old 07/12/2010, 12:16   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 54
Received Thanks: 5
funkt soweit,nur hab ich nochn prob das die fraben nie ganz gleich sind also mal hellgrün mal dunkel grün ,wo muss ich den die range an geben?

PixelGetColor(956,655),?)
edit:
so hab ma bischen gesucht und arbeit mit PixelSearch geht au ganz gut

Code:
HotKeySet(".","Stopp")
WinActivate("x")
WinWaitActive("xx")
While 1
    $coord = PixelSearch(918,654,1080,768,0xFF0000,50)
    If Not @error Then
     MouseClick("right", 956,655);it presses F11
    EndIf

    $coord = PixelSearch(918,654,1080,768,0x89FF00,50)
    If Not @error Then
     MouseClick("left", 956,655);
 EndIf
 $coord = PixelSearch(918,654,1080,768,0xFF5A00,50)
    If Not @error Then
     MouseClick("left", 956,655);
 EndIf
 Sleep(50)
Wend
Func Stopp()
Exit
EndFunc
läuft soweit ganz gut nun würd ich gern es noch im hintergrund laufen lassen
ControlSend brauch man dafür oder?
weedyy is offline  
Old 07/12/2010, 17:25   #4
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
indem fall ControlClick, da du nur nen mausklick machen willst und nichts schreiben.
omer36 is offline  
Reply


Similar Threads Similar Threads
[HILFE]brauch ma hilfe beim rüssi modden
12/28/2009 - Metin2 Private Server - 5 Replies
Hey Com also ich such jemanden der mir beim modden helfen könnte ich habe soweit alles fertig nur mein problem ist wenn ich ins spiel gehe das die rüssi immer noch so ist wie sie war :confused: bei hilfe gibts natürlich THX ;)
Ein bischen Hilfe wäre nett..
10/26/2009 - General Coding - 5 Replies
Also ich versuche in letzter Zeit mich daran ein wenig ein Spiel von mir zu "hacken"... Aber so richtig was geworden ist das noch nicht :p Das Spiel heißt osu! vllt kennt's einer von euch, ansonsten hier der Link: osu! - rhythm is just a click away . So ich habe mithilfe der CE schon mal während dem Gameplay meine Punkte gesucht und auch erfolgreich gefunden. Habe sie mal am ende des Songs geändert.. BUMS Error! Hierbei muss ich sagen die Adresse der Punkte ändert sich immer und Pointerscan...
AutiIt beginner in need of advice. Please
02/02/2008 - Cabal Online - 7 Replies
Okey it's like this, i want to make my own bot for Cabal in AutoIt but i went into a wall in the first turn. I can't get AutoIt to send keystrokes to the cabal client. I have tryed but nothing seems to work. Situation: Cabal is in window mode. My script is this.



All times are GMT +2. The time now is 14:38.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.