Hallo leute,
ich habe mein ersten bot geschriebn der lief am ersten Tag
einwandfrei und jetzt bleibt er einfach stehen
nach 1-2 runden manchmal macht er auch 5 und mehr.
Weiß nicht woran es liegen könnte.
Hir der code:
Bitte um hilfe ;)
ich habe mein ersten bot geschriebn der lief am ersten Tag
einwandfrei und jetzt bleibt er einfach stehen
nach 1-2 runden manchmal macht er auch 5 und mehr.
Weiß nicht woran es liegen könnte.
Hir der code:
Code:
#include "tt6.au3"
#include <GUIConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$ShaDoW_xBotMB = GUICreate("ShaDoW´s xBotMB", 500, 513, 269, 160)
$Pic1 = GUICtrlCreatePic("Data\guild-wars-logo.jpg", 0, 0, 499, 206, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("Thermalquellen (HM)", 144, 224, 209, 57, 0)
$Button2 = GUICtrlCreateButton("Lutgardis Wintergarten (HM)", 144, 288, 209, 57, 0)
$Button3 = GUICtrlCreateButton("GW Fenster Einstellen", 144, 352, 209, 56, 0)
$Button4 = GUICtrlCreateButton("Beenden", 144, 416, 209, 57, 0)
$Pic2 = GUICtrlCreatePic("Data\2.jpg", 0, 205, 145, 305, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic3 = GUICtrlCreatePic("Data\3.jpg", 352, 206, 145, 305, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic4 = GUICtrlCreatePic("Data\4.jpg", 144, 208, 209, 20, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic5 = GUICtrlCreatePic("Data\5.jpg", 144, 160, 217, 52, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$msg=GuiGetMsg()
If $msg=-3 Then Exit
If $msg=$Button1 Then button1()
If $msg=$Button2 Then button2()
If $msg=$Button3 Then button3()
If $msg=$Button4 Then button4()
WEnd
Func button1()
tm ()
EndFunc
Func button3()
fenster ()
EndFunc
Func button4()
Exit
EndFunc
Func button2()
Main()
EndFunc
;=========================Fenster Einstellungen===============================;
Func fenster ()
WinActivate ("Guild Wars")
ControlMove ("Guild Wars","","",0,0,800,600)
sleep (1000)
ControlClick ($hwnd,"","","left",1,650, 44)
EndFunc
Func way_out ()
PrepMoveTo()
If CheckArea (18602,-16549) Then
MoveTo(2,18300,-16337)
MoveTo(2,17916,-16084)
MoveTo(2,17448,-15812)
MoveTo(2,16956,-15601)
MoveTo(2,16266,-15673)
MoveTo(2,15642,-15750)
MoveTo(2,15479,-15300)
ElseIf CheckArea (15524,-15802) Then
MoveTo(2,15477,-15297)
ElseIf CheckArea (18602,-16695) Then
MoveTo(2,18300,-16337)
MoveTo(2,17916,-16084)
MoveTo(2,17448,-15812)
MoveTo(2,16956,-15601)
MoveTo(2,16266,-15673)
MoveTo(2,15642,-15750)
MoveTo(2,15479,-15300)
EndIf
KeepMoveTo()
While (_memoryread($memmap,$hprocess)) <> 1
Sleep(500)
WEnd
RndSleep(2000)
PrepMoveTo()
KeySend("8")
RndSleep(2000)
KeySend("7")
RndSleep(2000)
KeySend("6")
RndSleep(3000)
KeySend("5")
RndSleep(3000)
KeySend("4")
RndSleep(2000)
MoveTo(2,15338,-13801)
StopMoveTo()
KeySend("1")
RndSleep(3000)
KeySend("2")
PrepMoveTo()
MoveTo(2,15434,-13412)
MoveTo(2,15774,-12012)
StopMoveTo()
RndSleep(500)
KeySend ("4")
RndSleep(2000)
KeySend("3")
RndSleep(4000)
KeySend ("2")
RndSleep(2000)
KeySend("1")
RndSleep(1000)
KeySend("4")
RndSleep(1000)
KeySend("1")
RndSleep(3000)
KeySend("2")
RndSleep(4000)
KeySend("1")
RndSleep(6000)
KeySend("ö")
KeySend("SPACE")
RndSleep(4000)
KeySend("ö")
KeySend("SPACE")
RndSleep(3000)
KeySend("ö")
KeySend("SPACE")
RndSleep(3000)
KeySend("ö")
KeySend("SPACE")
RndSleep(3000)
Resign()
EndFunc
Func test ()
While (_memoryread($memmap,$hprocess)) <> 0
Sleep(500)
WEnd
RndSleep(2000)
way_out ()
EndFunc
Func tm ()
While 1
test ()
WEnd
EndFunc