Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:47

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

Advertisement



Error: Unknown Fuction Name

Discussion on Error: Unknown Fuction Name within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 2
Received Thanks: 0
Error: Unknown Fuction Name

Hallo, ich code jetzt seit ein paar Wochen mit autoit und habe mir gedacht,dass es vielleicht langsam zeit wird, etwas sinnvolles und eigenes mit den gelernten Befehlen zu machen. Ich habe mir dann überlegt, was, und bin auf einen Wiederverwertungsbot (edit: für das Spiel Guildwars) gekommen. Ich bin noch Anfänger, daher kann es sein, dass mein code unökonomisch ist.

ich bin mit dem code so weit gekommen:

Code:
Global $timer = InputBox("anzahl", "Später", 250)
Global $timerursp = $timer
Global $wvwtimer = 25
Global $functimes = 0

Sleep(15000)

_stackone()

Func _stackone()
   
   Do 
	  
	  mouseposition()
	  
	  Do
		 
		 $wvwtimer = $wvwtimer -1
		 
		 $wiederverwertbares1 = $mouseposition[0]
		 $wiederverwertbares2 = $mouseposition[1] + 30
		 
		 MouseClick("left")
		 MouseClick("left")
		 
		 Sleep(200)
		 
		 MouseMove($wiederverwertbares1, $wiederverwertbares2 + 30, 1)
		 
		 MouseClick("left")
		 MouseClick("left")
		 
		 Sleep(200)
		 
		 MouseMove($mouseposition[0], $mouseposition[1], 1)
		 
	  Until $wvwtimer = 0
	  
	  jumptonextwvw()
	  
	  $timer = $timer - 25
	  
	  $wvwtimer = 25
	  
   Until $timer = $timerursp - 250 Or $timer <= 0
   
   
EndFunc

Func mousposition()
   
   Global $mouseposition = MouseGetPos()
   
EndFunc

Func jumptonextwvw()
   
   $functimes = $functimes + 1
   
   $functimesdiv = $functimes / 5
   
   Local $actualmp = MouseGetPos()
   
   If Round($functimesdiv) = $functimesdiv Then
	  
	  MouseMove( $actualmp[0], $actualmp[1] - 30, 1)
	  
   Else
	  
	  MouseMove( $actualmp[0] + 30, $actualmp[1], 1)
	  
   EndIf
EndFunc
das ganze soll so funktionieren, dass man das wiederzuverwertende (z.b. Federskalpe) auf die ersten vier Plätze des inventars legt, dann einen platz freilässt und auf den rest Wiederverwertungwerkzeuge.

jetzt habe ich ihn erstmal ausprobiert, und festgestellt, dass eine Fehlermeldung kommt. Diese hat mich sehr irritiert:

Line 9
Error: Unknown function name.

Nach mehrmaligem Umbenennen, in eine andere file machen und #include Benutzen habe ich mich entschlossen, hier nach Hilfe zu suchen.

Schon mal danke im Voraus
LionHunt3r
LionHunt3r is offline  
Old 06/21/2012, 15:17   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
mouseposition()
;;
;;
Func mousposition()


hast dich wohl vertippt ^^
omer36 is offline  
Old 06/21/2012, 16:19   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 2
Received Thanks: 0
Danke, war wirklich nur ein Tippfehler. (und das obwohl ich den Script mehrfach (soll heißen eine halbe Stunde) untersucht habe )



LionHunt3r
LionHunt3r is offline  
Old 06/21/2012, 20:21   #4


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
#closed
Wir haben einen Sticky für kleine Fragen
Lawliet is offline  
Closed Thread


Similar Threads Similar Threads
[Need Help] Unknown Error
04/07/2012 - Last Chaos - 1 Replies
~
Unknown error
06/09/2011 - League of Legends - 3 Replies
(mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = "8C6000D3-F3E7-7134-91B3-751617825155" destination = "" extendedData = (null) faultCode = "Client.Error.RequestTimeout" faultDetail = "The request timeout for the sent message was reached without receiving a response from the server." faultString = "Request timed out" headers = (Object)#2
Unknown Npc Error
12/20/2008 - Silkroad Online - 2 Replies
I seem to be getting a unkown npc error at the storage for some wierd reason and the new agbot 2.5.6 doesnt select my character when i log in can anyone help me
Unknown Armor Error
07/02/2005 - Conquer Online 2 - 1 Replies
Well.. Everybody tells me its people using CO2 files and make you disconnect, because you don't have the file. Anybody know a way to not get dc when somebody uses a CO2 file or armor or whatever.. =&#092;



All times are GMT +1. The time now is 14:48.


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