Quote:
Originally Posted by flothekilla94
ich hab den mal getestet und er funzt super bloß brauch ich leider nen "intiligeten" potter d.h er soll erst ab einer gewissen grenze potten z.b erst wenn die tp unter tausend sind
|
Funktioniert einwandfrei:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
;~ Options:
AutoItSetOption ("PixelCoordMode",2)
;~ Hotkeys:
HotKeySet("{NUMPAD1}","Start_Stop")
WinWait("METIN2")
;~ Change Window:
WinMove("METIN2","",0,0,1024,768)
$StartStop = false
$hwnd = WinGetHandle("METIN2")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Auto Potter", 165, 168, 214, 217)
$Delay = GUICtrlCreateInput("Delay", 15, 30, 131, 21)
$Key = GUICtrlCreateInput("Key", 15, 75, 131, 21)
$Start = GUICtrlCreateButton("Start", 15, 110, 131, 46, 0)
$Label1 = GUICtrlCreateLabel("Delay:", 15, 10, 34, 17)
$Label2 = GUICtrlCreateLabel("Key:", 15, 55, 25, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
func Start_Stop()
If $StartStop == false Then
AdlibEnable("Pot",GuiCtrlRead($Delay))
GUICtrlSetData($Start,"Stop")
$StartStop = true
Else
AdlibDisable()
GUICtrlSetData($Start,"Start")
$StartStop = false
EndIf
EndFunc
func Pot()
If WinActive("METIN2") == 1 AND PixelGetColor(92,721,$hwnd) == 0x2C2C2C Then
Send(GuiCtrlRead($Key))
EndIf
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Start
Start_Stop()
EndSwitch
WEnd
Sollte potten wenn das Leben etwas bei 50% ist.
BTW: Wenn du die Fenstergröße veränderst muss du dir die Coords neu suchen.