Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:31

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

Advertisement



Autoit Bot kein Spiel!

Discussion on Autoit Bot kein Spiel! within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2018
Posts: 2
Received Thanks: 0
Autoit Bot kein Spiel!

Also ich habe ein Problem. Ich will das die Maus in der episoden schleife While schleife die Position am besten immer 40 pixel weiter nach rechts sich bewegt.
Aber es soll vom start punkt aus immer weiter nach rechts gehen in einer Schleife.
Kann man auch eine funktion machen, die erkennt wann eine Episode vorbei ist? bzw wenn etwas auftaucht das skript anfängt
Wäre nett wenn mir einer helfen könnte.

HotKeySet("e", "start")
HotKeySet("w", "pause")
HotKeySet("q","Ende")

while 1
sleep(10000)
WEnd

pause()
Func pause()
While 1
sleep (15000)
WEnd
EndFunc

Func Ende()
Exit
EndFunc

Func start()
While 1
$x = 40

;1. Kleiner machen
MouseClick("left",2612, 743,1)
sleep(1000)

;2. runterscrollen
MouseClick("",2630,725,1,20)

;3. Episode aussuchen
MouseMove(1972,127,20)
While 2

$pos= MouseGetPos()
MouseMove($pos[0]+$x, $pos[1])
MouseClick("")
ExitLoop
WEnd
;4. runterscrollen
MouseClick("",2630,725,1,20)
sleep(1000)
;5. host wählen
MouseClick("left",1650,479,1,30)
sleep(1000)

;6 runterscrollen
MouseClick("",2630,725,1,20)
;7 Stream anklciken 2mal
MouseClick("left", 1943,473,2,30)
Sleep(5000)
;8. Stream vergrößern
MouseClick("left", 2367, 682,1,30)

WEnd
EndFunc
beyt is offline  
Old 04/16/2018, 07:57   #2
 
Römer 13:8-10's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 11
Received Thanks: 3
Ich nehm mal an, dein Ansatz war es, deinen folgenden Codeschnipsel 2-mal ausführen zu lassen:
Code:
While 2
   $pos= MouseGetPos()
   MouseMove($pos[0]+$x, $pos[1])
   MouseClick("")
   ExitLoop
WEnd
Wenn ja, dann muss ich dir mitteilen, dass du die Idee hinter einer While-Schleife nicht richtig Anwendest.

Ich würde dir die For-Schleife ans Herz legen, weil mit der kannst du gezielt abstimmen, wie viele Durchläufe dein Code haben soll:
Code:
For $i = 1 To 2 Step 1
   $pos = MouseGetPos()
   MouseMove($pos[0]+$x, $pos[1])
   MouseClick("primary")
Next
Römer 13:8-10 is offline  

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.