Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 21:10

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

Advertisement



Auto It Problem

Discussion on Auto It Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 1
Join Date: Oct 2008
Posts: 51
Received Thanks: 5
Auto It Problem

HotKeySet("{F8}", "Ende")
HotKeySet("{F7}", "Start")

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

While 1
Sleep(400)

Wend



Func Start()
While 1
Sleep(200)
Logik()

WEnd

EndFunc


Func Ende()
Exit

EndFunc


Func Logik()
$on = 0x000000
$off = 0x39565D
$pixel = PixelGetColor(793,599)


If $pixel = $off
Then
mouseclick ("left" , 348, 289)
Sleep(1000)
Send("ID")
Sleep(400)
Send("{ENTER}")
Sleep(400)
Send("PW")
Sleep(1000)
Send("{ENTER}")
Sleep(2500)
mouseclick ("left" , 170, 479)
Sleep(4000)

Else
Sleep(300)

EndIf

EndFunc


Das ist meinr Skript.
Compilierung funktioniert nur wenn ich es ausführen möchte kommt immer der Fehler: in Line 8 "" Func has no mathcing EndFunc .

Seh den Fehler einfahc nicht.

Danke

afo

PS: Soll ein lvl bot werden ich bau dannnoch eine neue Funktion oben ein in der Start Func die dann schlägt und Umhänge.
.AllForOne. is offline  
Old 12/21/2010, 19:38   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
im func start rufst du die funktion logic auf... wozu?
führ es doch gleich im func start() auf, was du vor hast...

PHP Code:
HotKeySet("{F8}""Ende")
HotKeySet("{F7}""Start")

Opt('PixelCoordMode'2)
Opt('MouseCoordMode'2)

While 
1
Sleep
(400)
Wend



Func Start
()
While 
1
Sleep
(200)
$on 0x000000
$off 
0x39565D
$pixel 
PixelGetColor(793,599)

If 
$pixel $off Then
mouseclick 
("left" 348289)
Sleep(1000)
Send("ID")
Sleep(400)
Send("{ENTER}")
Sleep(400)
Send("PW")
Sleep(1000)
Send("{ENTER}")
Sleep(2500)
mouseclick ("left" 170479)
Sleep(4000)
Else
Sleep(300)
EndIf
WEnd
EndFunc


Func Ende
()
Exit
EndFunc 
omer36 is offline  
Old 12/22/2010, 00:45   #3
 
elite*gold: 1
Join Date: Jun 2009
Posts: 570
Received Thanks: 68
Auch wenn die Auslagerung mit der Logik- Funktion etwas umständlich ist, sehe ich keine syntaktischen Fehler. Hab ich was vor den Augen (schon bisschen spät am Abend ) oder spackt der Compeiler mal wieder rum?
Dimension0x00 is offline  
Old 12/22/2010, 15:26   #4
 
elite*gold: 1
Join Date: Oct 2008
Posts: 51
Received Thanks: 5
hm ja hat sich geklärt nur ein neues problem ist auftreten:
Func Logik()

$on = 0x000000
$off = 0x39565D
$pixel = PixelGetColor(793,599)

While 1

If $pixel = $off Then


mouseclick ("left" , 348, 289)
Sleep(1000)
Send("ID")
Sleep(400)
Send("{ENTER}")
Sleep(400)
Send("PW")
Sleep(1000)
Send("{ENTER}")
Sleep(3500)
mouseclick ("left" , 170, 479)
Sleep(4000)


Else
LvL()

EndIf

Wend
EndFunc


Func LvL()
While 1
Send("3")
Sleep(1000)
Send("{Space DOWN}")
Sleep(6000)
Send("4")
Sleep(6000)
Send("1")4
Send("1")
Send("1")
Send("1")
Sleep(400)
Send("y")
Sleep(1000)
Send("1")
Send("1")
Send("1")

Send("2")
Send("{Space UP}")

WEnd

EndFunc


Die If SChleife soll öfter aufgerufen werden, bei mir wird sie nur einmal aufgerufen, d.h. er macht kein relog nur wenn ich am anfang nicht eingelogt bin logt er sich ein und schlägt dann.
.AllForOne. is offline  
Reply


Similar Threads Similar Threads
DP-BOT Auto res problem.
06/01/2010 - SRO Private Server - 2 Replies
Yo guys, is there a way to make DP-BOT not res after you die in pvp? Because every time i get killed the bot presses the resurrect button so fast that my character gets glitched, and i have to re log. I'm using v8.0 Thanks.
Auto-it problem
12/26/2009 - Metin2 - 1 Replies
hallo wollte mal ein Bot scripten(zumindest versuchen) und ich ahbe dieses auto it benutzt http://www.elitepvpers.com/forum/metin2-hacks-bots- cheats-exploits-macros/166717-autoit-tool-das-bot- tool.html Dann öffnente ich ein Nues Fenster und machte einen "Moblock" Button^^ Danach wollt ich noch Movespeed.. aber das koonnte ich dnan nicht ins fesnter einfügen wieosw nich das rutscht imma weg^^
Auto it problem
08/07/2009 - Metin2 - 4 Replies
Wenn ich beim ScITE go drücke kommt das C:\Programme\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3 Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Dokumente und Einstellungen\Daniel Singh\Desktop\test.au3" /autoit3dir "..\AutoIt3" /UserParams +>03:36:06 Starting AutoIt3Wrapper v.2.0.0.1 Environment(Language:0407 Keyboard:00000407 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) ! Unable to determine the location of the AutoIt3 program directory! !>Error: program "C:\Programme\AutoIt3\autoit3.exe" is...
GG Updated... Auto Hp, Auto loot, Auto summon not working anymore
11/29/2007 - Dekaron - 21 Replies
GG Updated again! all of my pinacle are not working...



All times are GMT +2. The time now is 21:10.


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