Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 01:39

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

Advertisement



MouseMove Random

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

Reply
 
Old   #1
 
Darkengelxd's Avatar
 
elite*gold: 1
Join Date: Jul 2012
Posts: 52
Received Thanks: 5
MouseMove Random

Hey ich habe mir nen kleinen PixelBot für Darkobrit zamgebastelt jetzt habe ich folgendes Problem er soll Random auf der Minimap rumklicken allerdings klickt er immer nach links oben in die Ecke was mache ich falsch ?
Codeausschnitt:
Code:
$X=0
$Y=0


Opt("MouseCoordMode", 1)
While 1
	If $pause = False Then
		$Box = _ImageSearch("streuner2.bmp",1,$X,$Y,0)
		If $Box = True Then
			MouseMove($X-30,$Y-45,0)
			Sleep(75)
			MouseClick("left")
			Sleep(100)
			Send("{LCTRL}")


			Sleep($Zeit)

		Else
		  MouseMove(Random(1240, 678, 1), Random(1400, 773, 1), 2)
		  Sleep(5000)
		EndIf
	Else
		sleep(150)
	EndIf
WEnd
Darkengelxd is offline  
Old 02/28/2015, 21:27   #2

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Meinst du die Zeile MouseMove(Random(1240, 678, 1), Random(1400, 773, 1), 2) ?
Klicken sollte er garnicht, nur die Maus dahinbewegen. Daran ist eigentlich nichts falsch.
Moneypulation is offline  
Old 02/28/2015, 21:49   #3
 
Darkengelxd's Avatar
 
elite*gold: 1
Join Date: Jul 2012
Posts: 52
Received Thanks: 5
Quote:
Originally Posted by moneypulation View Post
Meinst du die Zeile MouseMove(Random(1240, 678, 1), Random(1400, 773, 1), 2) ?
Klicken sollte er garnicht, nur die Maus dahinbewegen. Daran ist eigentlich nichts falsch.
Ya natürlich er soll erst später klicken aber er bewegt nur die Maus ins ecke oben links also ich will das er sie bei den coordinaten bewegt
Darkengelxd is offline  
Old 02/28/2015, 23:01   #4

 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,494
Received Thanks: 1,769
Quote:
Originally Posted by Darkengelxd View Post
Ya natürlich er soll erst später klicken aber er bewegt nur die Maus ins ecke oben links also ich will das er sie bei den coordinaten bewegt
Der Code den du gepostet hast sorgt nicht für den Fehler. Vielleicht postest du ja etwas mehr, was mit diesem Minimapklicker zu tun hat, sodass wir den Fehler finden können
Moneypulation is offline  
Old 02/28/2015, 23:11   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
"Ecke oben links" ist relativ. Welche Ecke? Was ist "oben links"? Meinst du die Position mit x = y = 0?
Füge doch einfach eine Zeile hinzu, welche dir die Koordinaten in die Konsole schreibt.

Code:
Global $pause = True

Opt("MouseCoordMode", 1)

While Sleep(10)
    If $pause Then
        Sleep(150)
    Else
        Local $x = 0, $y = 0
        If _ImageSearch("streuner2.bmp", 1, $x, $y, 0) == 1 Then
            MouseMove($x - 30, $y - 45, 0)
            Sleep(75)
            MouseClick("primary")
            Sleep(100)
            Send("{LCTRL}")
            Sleep($Zeit)
        Else
            $x = Random(1240, 678, 1)
            $y = Random(1400, 773, 1)
            ConsoleWrite('@@ Debug(' & @ScriptLineNumber & '): $x = Random(1240, 678, 1) = ' & $x & '; $y = Random(1400, 773, 1) = ' & $y & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
            MouseMove($x, $y, 0)
            Sleep(5000)
        EndIf
    EndIf
WEnd
KDeluxe is offline  
Reply


Similar Threads Similar Threads
[Released] Monster legends (Random Gold) (Random Food) (Random Exp)
02/03/2015 - Facebook - 6 Replies
Monster legends New Tools !! *1 - Random Gold *2 - Random Food *3 - Random Exp All Tested And Working 100% Without Any Problem :handsdown: !!! Link
[Release] Monster legends (Random Gold) (Random Food) (Random Exp)
02/03/2015 - Dragon City - 5 Replies
Monster legends New Tools !! *1 - Random Gold *2 - Random Food *3 - Random Exp All Tested And Working 100% Without Any Problem :handsdown: !!! Link
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold
01/24/2015 - Dragon City - 25 Replies
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold Dragon City Gem + Gold + Food +Exp



All times are GMT +1. The time now is 01:39.


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