Kleines Problem mit meinen (Aim)Bot

03/28/2010 21:19 Visonar#1
Guten Abend,
ich hätte hier mal eine Frage/Problem zu meinem (Aim)Bot.

Also, der Bot soll nach einem Klick auf den Start-Button linke Mausklicks auf einen bestimmten Pixel(0xEB1609) im Bereich des fast ganzen Bildschirms machen.
Immer einen Mausklick auf den Pixel, danach den Nächsten, und so weiter.

Nur leider will der nicht ganz so, wie ich will.

Wenn ich Start drücke fährt die Maus nur auf den Pixel, macht aber weiter nix, auch keinen Klick???


Hier einmal mein Scipt:

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include-once

HotKeySet("{End}""Ende")

Func Ende()
    Exit
EndFunc 

Func AimTo
($Farbe$shade)
    
$PS PixelSearch(351731316685$Farbe$shade)
    If 
IsArray($PS) = 1 Then
        
While 1
        MouseClick
("left"$PS[0], $PS[1])
        
WEnd
    
EndIf
EndFunc

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Aimbot"16669193125)
$Start GUICtrlCreateButton("Start"168131490)
GUICtrlSetFont(-1108000"Arial")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Start
            AimTo
(0xEB16092)
    EndSwitch
WEnd 

Ich hoffe und denke mir kann geholfen und der Fehler meines Scripts behoben werden.

Danke im Vorraus!
03/29/2010 00:16 -MARKS-#2
Probiers mal so:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include-once

HotKeySet("{End}""Ende")

Func Ende()
    Exit
EndFunc 

Func AimTo
($Farbe$shade)
    
$pix PixelSearch(351731316685$Farbe$shade)
  If 
IsArray($pixThen
While 1
MouseClick
("left"$pix[0], $pix[1], 10)
Sleep (50)
WEnd
EndIf

EndFunc

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Aimbot"16669193125)
$Start GUICtrlCreateButton("Start"168131490)
GUICtrlSetFont(-1108000"Arial")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Start
            AimTo
(0xEB16092)
    EndSwitch
WEnd 
03/29/2010 00:18 Visonar#3
Quote:
Originally Posted by -MARKS- View Post
Probiers mal so:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include-once

HotKeySet("{End}""Ende")

Func Ende()
    Exit
EndFunc 

Func AimTo
($Farbe$shade)
    
$pix PixelSearch(351731316685$Farbe$shade)
  If 
IsArray($pixThen
While 1
MouseClick
("left"$pix[0], $pix[1], 10)
Sleep (50)
WEnd
EndIf

EndFunc

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Aimbot"16669193125)
$Start GUICtrlCreateButton("Start"168131490)
GUICtrlSetFont(-1108000"Arial")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Start
            AimTo
(0xEB16092)
    EndSwitch
WEnd 
danke, werd ich morgen ma testen

€: ne geht leider auch nicht:(