[AutoIt] Frage/Antworte Thread

09/13/2008 12:09 Computerfreek#271
Mach dir nen Bot mit Mousemove (x , y) und dann haste diene Maus immer an der gleichen Stelle ;).

Also am besten so mit Hotkeys, das du es auch immer abrufen kannst. Auch wenn du grad in der anwendung bist :)

lG Freek
09/14/2008 16:59 laksenluke#272
aha stimmt danke
kriegst ein THX

grad noch eine frage:

kann mir einer sagen wie man eine roll-back funktion beim fischingbot einbaut?
ich habe den angelbot nach marcopolos anleitung gemacht. Aber ich brauche noch eine roll-back funktion aso wenn er stehen blleibt das er neu anfängt
hier der code (kennt ja eh jeder) er is halt saulang

Quote:
HotKeySet ( "{F5}" , "Start" ) ; Der Taste Numpad7 ist nun die Info Start hinzugefügt
HotKeySet ( "{F6}" , "Ende" ) ; Der Taste Numpad8 ist nun die Info Ende hinzugefügt

Opt('PixelCoordMode', 2) ; falls window als option gewählt wurde
Opt('MouseCoordMode', 2) ; falls window als option gewählt wurde

While (1) ; Endlosschleife anfang und 1 für an
Sleep (1000) ; Überprüft jetzt jede Sekunde ob die oben genannten Tasten/Infos gedrückt worden sind
Wend ; Endlosschleife ende

Func Start () ; Das Zeil für die Info Start
While (1) ; die vorher vergessene while funktion sry xD
Sleep (5000) ; Wartet 5 sekunden bis er anfängt
Send ( "{F3 down}" , 0 ) ; hält die Taste F3 runter
Sleep (500) ; hält die taste 0,5 Sekunden
Send ( "{F3 up}" , 0 ) ; lässt die Taste F3 wieder los
Sleep (1000) ; Wartet 1ne Sekunde




Send ( "{F4 down}" , 0 ) ; hält die Taste F4 runter
Sleep (500) ; Hält die Taste 0,5 Sekunden
Send ( "{F4 up}" , 0 ) ; lässt die Taste F4 wieder los
Sleep (1000) ; Wartet wieder 1ne Sekunde

While (1)
= PixelGetColor ( 414, 130 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 514, 60 ) ; Farbe: 00xE4E0E4
= PixelGetColor ( 450, 188 ) ; Farbe: 0xF3EFF3
= PixelGetColor ( 298, 112 ) ; Farbe: 0xF3EFF2
= PixelGetColor ( 394, 124 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 343, 345 ) ; Farbe: 0xEFEAEE
= PixelGetColor ( 375 , 199 ) ; Farbe: 0xF4F0F4
= PixelGetColor ( 440 , 181 ) ; Farbe: 0xECE8EC
= PixelGetColor ( 489 , 205 ) ; Farbe: 0xD8D4D8
= PixelGetColor ( 381 , 95 ) ; Farbe: 0xFDF9FC
= PixelGetColor ( 380 , 77 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 330 , 51 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 386 , 51 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 489 , 63 ) ; Farbe: 0xF7F3F7
= PixelGetColor ( 325 , 221 ) ; Farbe: 0xEBE7EB
= PixelGetColor (346, 101) ;0xDFDCDF
= PixelGetColor (412, 152) ; 0xFCF8FB
= PixelGetColor (345, 114) ; 0xF4F0F4
= PixelGetColor (449, 129) ; 0xF9F5F8
= PixelGetColor (536, 87) ; 0xE0DCE0
= 2300

If = 0xE0DCE0 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF9F5F8 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF4F0F4 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xDFDCDF Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xE4E0E4 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}"))
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF3EFF2 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF9F5F8 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF4F0F4 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xECE8EC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xD8D4D8 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFDF9FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF7F3F7 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xEBE7EB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
Sleep(500) ; Da der While Befehl ist muss auch ein Sleep befehl drin sein sonst überlastet das den PC unnötig
Wend
Sleep(3000) ; wartezeit , bevor er wieder von vorne anfängt
Wend ; die vorher vergessene Wend funktion sry xD
Endfunc

Func Ende ()
Exit ; Programm beendet sich
EndFunc
Quote:
Originally Posted by banjo1
sry für das Thema gebe ich keine Hilfe
09/19/2008 14:44 Souljaboy1996#273
Das is die erste ZEile meines bots HotKeySet ( "{Numpad7}" , "Start" ) danach kommt noch der restliche code.Ich will den bot starten und dann kommt error unbekannte Funktiuon:HotKeySet ( "{Numpad7}" , "Start" ) was soll ich machen?
09/19/2008 15:29 Computerfreek#274
Hast du die Funktion angegeben? Also wenn du nen HotKeySet machst, musst du auch die dementsprechende Funktion dazu schreiben.
09/19/2008 15:39 Souljaboy1996#275
kannste nich lesen
09/19/2008 15:52 Quade#276
Func Start () ; vergessen vllt?
09/19/2008 15:53 Souljaboy1996#277
ne alles da
hier kompletter code:
HotKeySet ( "{Numpad7}" , "Start" )
Opt('PixelCoordMode', 2)
Opt('MouseCoordMode', 2)
While(1)
Sleep(1000)
WEnd
FuncStart()
While(1)
Sleep(5000)
Send( "{SPACE down}" , 0 )
Sleep(25000)
Send( "{SPACE up}" , 0)
Send( "{x down}" , 0 )
Send( "{4 down}" , 0 )
Sleep(500)
Send( "{4 up}" , 0 )
Send( "{q down}" , 0 )
Sleep(500)
Send( "{q up}" , 0 )
Send( "{5 down}" , 0 )
Sleep(500)
Send ("{5 up}" , 0 )
If $Life1 = 0xFFFFFF Then
Send( "{t down}" , 0 )
Sleep(15000)
Send( "{t up}" , 0 )
ExitLoop
Start()
EndIf
Sleep(500)
WEnd
FuncEnde()

Edit:sry hab ende vergessen bey HotKeySet
09/19/2008 15:56 Quade#278
HotKeySet ( "{Numpad7}" , "Start" )
Opt('PixelCoordMode', 2)
Opt('MouseCoordMode', 2)
While(1)
Sleep(1000)
WEnd
Func Start()
While(1)
Sleep(5000)
Send( "{SPACE down}" , 0 )
Sleep(25000)
Send( "{SPACE up}" , 0)
Send( "{x down}" , 0 )
Send( "{4 down}" , 0 )
Sleep(500)
Send( "{4 up}" , 0 )
Send( "{q down}" , 0 )
Sleep(500)
Send( "{q up}" , 0 )
Send( "{5 down}" , 0 )
Sleep(500)
Send ("{5 up}" , 0 )
If $Life1 = 0xFFFFFF Then
Send( "{t down}" , 0 )
Sleep(15000)
Send( "{t up}" , 0 )
EndIf
Sleep(500)
WEnd
EndFunc

?? so vllt?^^
09/19/2008 18:05 Souljaboy1996#279
jo so geht's
09/19/2008 20:15 Quade#280
Hast du auch verstanden warum?
Wenn nicht kannste mir ne PM schreiben.
09/19/2008 20:17 tenja#281
@laksenluke

HotKeySet ( "{F5}" , "Start" ) ; Der Taste Numpad7 ist nun die Info Start hinzugefügt
HotKeySet ( "{F6}" , "Ende" ) ; Der Taste Numpad8 ist nun die Info Ende hinzugefügt

Opt('PixelCoordMode', 2) ; falls window als option gewählt wurde
Opt('MouseCoordMode', 2) ; falls window als option gewählt wurde

While (1) ; Endlosschleife anfang und 1 für an
Sleep (1000) ; Überprüft jetzt jede Sekunde ob die oben genannten Tasten/Infos gedrückt worden sind
Wend ; Endlosschleife ende

Func Start () ; Das Zeil für die Info Start
While (1) ; die vorher vergessene while funktion sry xD
Sleep (5000) ; Wartet 5 sekunden bis er anfängt
$begin = TimerInit()
Send ( "{F3 down}" , 0 ) ; hält die Taste F3 runter
Sleep (500) ; hält die taste 0,5 Sekunden
Send ( "{F3 up}" , 0 ) ; lässt die Taste F3 wieder los
Sleep (1000) ; Wartet 1ne Sekunde




Send ( "{F4 down}" , 0 ) ; hält die Taste F4 runter
Sleep (500) ; Hält die Taste 0,5 Sekunden
Send ( "{F4 up}" , 0 ) ; lässt die Taste F4 wieder los
Sleep (1000) ; Wartet wieder 1ne Sekunde

While (1)
= PixelGetColor ( 414, 130 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 514, 60 ) ; Farbe: 00xE4E0E4
= PixelGetColor ( 450, 188 ) ; Farbe: 0xF3EFF3
= PixelGetColor ( 298, 112 ) ; Farbe: 0xF3EFF2
= PixelGetColor ( 394, 124 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 343, 345 ) ; Farbe: 0xEFEAEE
= PixelGetColor ( 375 , 199 ) ; Farbe: 0xF4F0F4
= PixelGetColor ( 440 , 181 ) ; Farbe: 0xECE8EC
= PixelGetColor ( 489 , 205 ) ; Farbe: 0xD8D4D8
= PixelGetColor ( 381 , 95 ) ; Farbe: 0xFDF9FC
= PixelGetColor ( 380 , 77 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 330 , 51 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 386 , 51 ) ; Farbe: 0xFCF8FC
= PixelGetColor ( 489 , 63 ) ; Farbe: 0xF7F3F7
= PixelGetColor ( 325 , 221 ) ; Farbe: 0xEBE7EB
= PixelGetColor (346, 101) ;0xDFDCDF
= PixelGetColor (412, 152) ; 0xFCF8FB
= PixelGetColor (345, 114) ; 0xF4F0F4
= PixelGetColor (449, 129) ; 0xF9F5F8
= PixelGetColor (536, 87) ; 0xE0DCE0
= 2300

If = 0xE0DCE0 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF9F5F8 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF4F0F4 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xDFDCDF Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xE4E0E4 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}"))
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF3EFF2 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF9F5F8 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF4F0F4 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xECE8EC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xD8D4D8 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFDF9FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCF8FC Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFCFCFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xF7F3F7 Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xFBFBFB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
If = 0xEBE7EB Then
Sleep ( )
Send("{F4 down}")
Sleep(500)
Send("{F4 up}")
ExitLoop
EndIf
$dif = TimerDiff($begin)
If $dif > 60000 Then; wenn die differenz bis zum rotemakiertem timerstart größer als 1min ist, dann
Exit Loop
Endif
Sleep(500) ; Da der While Befehl ist muss auch ein Sleep befehl drin sein sonst überlastet das den PC unnötig
Wend
Sleep(3000) ; wartezeit , bevor er wieder von vorne anfängt
Wend ; die vorher vergessene Wend funktion sry xD
Endfunc

Func Ende ()
Exit ; Programm beendet sich
EndFunc



geändertes ist rot makiert
09/25/2008 17:54 laksenluke#282
danke vielmals tenja

noch was: wenn ich einen einlogin bot scripte klappt das nie z.B

accname: Beispiel
pw: 123

Send ( " {B} " )
Send ( " {e} " )
Send ( " {i} " )
Send ( " {s} " )
Send ( " {p} " )
Send ( " {i} " )
Send ( " {e} " )
Send ( " {l} " )
Send ( " {TAB} " )
Send ( " {1} " )
Send ( " {2} " )
Send ( " {3} " )
Send ( " {ENTER} " )
wieso nich?
09/25/2008 18:07 °Remus°#283
Quote:
Originally Posted by laksenluke View Post
danke vielmals tenja

noch was: wenn ich einen einlogin bot scripte klappt das nie z.B

accname: Beispiel
pw: 123

Send ( " {B} " )
Send ( " {e} " )
Send ( " {i} " )
Send ( " {s} " )
Send ( " {p} " )
Send ( " {i} " )
Send ( " {e} " )
Send ( " {l} " )
Send ( " {TAB} " )
Send ( " {1} " )
Send ( " {2} " )
Send ( " {3} " )
Send ( " {ENTER} " )
wieso nich?
wieso es nicht klappt weis ich nicht aber probiers erstma so:
Send("beispiel")
Send ( " {TAB} " ) ; du kannst auch enter benutzten
Send("123")
Send ( " {ENTER} " )
09/25/2008 18:13 Quade#284
Zwischen Send("{Tab}") und Send("{ENTER}") mach noch n Sleep(800)...

Klappt bei mir besser^^ Manchmal ist er nämlich nicht so schnell.
09/25/2008 22:04 TheMan!!#285
Was ist da Falsch sollte ein lvl Bot werden.

Quote:
HotKeySet ( "{F11}" , "Start" )
HotKeySet ( "{F12}" , "Start1" )
HotKeySet ( "{F10}" , "Ende" )

Opt('PixelCoordMode', 2) ;
Opt('MouseCoordMode', 2) ;

While (1)
Sleep (1000)
Wend
Func Start () ;
While (1) ;
While (1)
MouseClick("left",709,360)
Sleep (1)
MouseClick("left",677,362)
Sleep (1)
MouseClick("left",332,185)
Sleep (1)
Sleep (500000000000000)
Wend
Sleep (1000)
Wend
EndFunc

Func Start1 () ;
While (1) ;
While (1)
MouseClick("left",576,429)
Sleep (1)
MouseClick("left",744,618)
Sleep (1)
MouseClick("left",719,753)
Sleep (1)
Sleep (500000000000000)
Wend
Sleep (1000)
Wend
EndFunc


Func Ende ()
Exit
EndFunc

_____________________

[Only registered and activated users can see links. Click Here To Register...]


Meine Bots:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]