You last visited: Today at 09:20
Advertisement
[HELP]Func -> Syntax Error
Discussion on [HELP]Func -> Syntax Error within the AutoIt forum part of the Coders Den category.
07/09/2010, 19:27
#1
elite*gold: 0
Join Date: Jun 2009
Posts: 1,977
Received Thanks: 1,004
[HELP]Func -> Syntax Error
Huhu Com..
Ich wollte mir mal einen kleinen Bot machen...
Aber bei "Func" kommt immer diese Fehlermeldung...
Bin dankbar für jede hilfe
p.s: ja, am Ende hab ich auch ein "EndFunc"
07/09/2010, 19:49
#2
elite*gold: 0
Join Date: Jul 2009
Posts: 184
Received Thanks: 299
man sollen wir hellsehen gib das script und zwar das ganze und wenn was nicht public werden darf dan zensier es
07/09/2010, 19:57
#3
elite*gold: 0
Join Date: Jun 2009
Posts: 1,977
Received Thanks: 1,004
Wie du siehst, ist es ganz simple aufgebaut...
Ich hab noch weitere Scripts... Aber dort hat es keine Fehler
P.s: sollte ein kleines GM-Tool werden
[GUI wurde mit KoDa gemacht...]
[...]
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate ( "Sprache wählen" , 218 , 171 , 302 , 218 ) $ger = GUICtrlCreateButton ( "Deutsch" , 8 , 16 , 201 , 41 , $WS_GROUP ) GUICtrlSetFont (- 1 , 14 , 400 , 0 , "MS Sans Serif" ) $en = GUICtrlCreateButton ( "English" , 8 , 104 , 201 , 41 , $WS_GROUP ) GUICtrlSetFont (- 1 , 14 , 400 , 0 , "MS Sans Serif" ) GUISetState (@ SW_SHOW ) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg () Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ger _ger () Case $en _en () EndSwitch WEnd Func _ger () EndFunc Func _en () EndFunc
[....]
Dieser Func-Befehl geht nicht...
07/09/2010, 21:03
#4
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
also ich bekomm keine fehlermeldung bei deinem script...
07/09/2010, 21:06
#5
elite*gold: 0
Join Date: Jun 2009
Posts: 1,977
Received Thanks: 1,004
...
Ich installier mal AutoIT nochmals neu...
Mal sehen ob es dann geht...
Ich werde es dann reineditieren.
#Edit: Geht noch immer nicht
07/09/2010, 21:33
#6
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
ich bekomme auch keine fehlermeldung!
07/09/2010, 21:46
#7
elite*gold: 0
Join Date: Jun 2009
Posts: 1,977
Received Thanks: 1,004
Aber bei mir -.-"
07/09/2010, 22:08
#8
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
schau mal ob du die eine datei im include verzeichnis hast
07/09/2010, 22:29
#9
elite*gold: 0
Join Date: Jun 2009
Posts: 1,977
Received Thanks: 1,004
Ich hab es auch schon AutoIT neu installiert...
Ich versteh nicht wieso es nicht geht...
#Edit:
Hier mit Test (Da gehts)
07/09/2010, 23:42
#10
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Schick mal deinen Source von der WinAPIError.au3 aus dem Include Verzeichnis, denn daher kommt der Fehler, nicht von deinem Script.
07/09/2010, 23:43
#11
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Der Fehler liegt in zeile 29. Schau dir diese mal genauer an. (Hab kein AutoIt auf dem Rechner installiert)
07/10/2010, 15:24
#12
elite*gold: 0
Join Date: Jun 2009
Posts: 1,977
Received Thanks: 1,004
Quote:
Originally Posted by
pinguin94
Schick mal deinen Source von der WinAPIError.au3 aus dem Include Verzeichnis, denn daher kommt der Fehler, nicht von deinem Script.
Ich schick sie dir bald...
Bin jetzt auf anderen PC...
@HardCore.1337:
Ich werd sie mir mal genauer anschauen...
Aber nicht jetzt, kann nicht auf andere PC
07/10/2010, 19:27
#13
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Liegt wie gesagt nicht an deinem Source.
In Zeile 29 in der WinAPIError.au3 scheint ein Fehler zu sein.
Ersetz deine mal mit der hier:
Code:
#include-once
; #INDEX# =======================================================================================================================
; Title .........: Windows API
; AutoIt Version : 3.2
; Description ...: Windows API calls that have been translated to AutoIt functions.
; Author(s) .....: Paul Campbell (PaulIA)
; Dll ...........: kernel32.dll
; ===============================================================================================================================
; #CURRENT# =====================================================================================================================
;_WinAPI_GetLastError
;_WinAPI_SetLastError
; ===============================================================================================================================
; #FUNCTION# ====================================================================================================================
; Name...........: _WinAPI_GetLastError
; Description ...: Returns the calling thread's lasterror code value
; Syntax.........: _WinAPI_GetLastError()
; Parameters ....:
; Return values .: Success - Last error code
; Author ........: Paul Campbell (PaulIA)
; Modified.......:
; Remarks .......:
; Related .......: _WinAPI_GetLastErrorMessage
; Link ..........: @@MsdnLink@@ GetLastError
; Example .......:
; ===============================================================================================================================
Func _WinAPI_GetLastError($curErr=@error, $curExt=@extended)
Local $aResult = DllCall("kernel32.dll", "dword", "GetLastError")
Return SetError($curErr, $curExt, $aResult[0])
EndFunc ;==>_WinAPI_GetLastError
; #FUNCTION# ====================================================================================================================
; Name...........: _WinAPI_SetLastError
; Description ...: Sets the last-error code for the calling thread
; Syntax.........: _WinAPI_SetLastError($iErrCode)
; Parameters ....: $iErrCode - The last error code for the thread
; Return values .:
; Author ........: Paul Campbell (PaulIA)
; Modified.......:
; Remarks .......: The last error code is kept in thread local storage so that multiple threads do not overwrite each other's
; values.
; Related .......:
; Link ..........: @@MsdnLink@@ SetLastError
; Example .......:
; ===============================================================================================================================
Func _WinAPI_SetLastError($iErrCode, $curErr=@error, $curExt=@extended)
DllCall("kernel32.dll", "none", "SetLastError", "dword", $iErrCode)
Return SetError($curErr, $curExt)
EndFunc ;==>_WinAPI_SetLastError
07/10/2010, 20:56
#14
elite*gold: 0
Join Date: Jun 2009
Posts: 1,977
Received Thanks: 1,004
hm...
Geht noch immer nicht...
Lassen wir dass mal^^
Bei anderen Scripts gehts...
Dann mach ich halt kurz ein neues..
Thx an alle
Similar Threads
Syntax error Brauche hilfe
07/15/2010 - Metin2 Private Server - 9 Replies
Hey Com
Ich habe ein problem ich und mein Team wollen heute abend unseren root pub machen.Aber die ox map geht nit also ich gebe /go ox ein und dan kommt da der Fehler.
Cannot find map command syntax : /goto <mapname>
Kann mir vlt einer helfen und sagen wie ich das beheben kann.
MFG
Destii
[HELP]Syntax Error
11/28/2009 - Dekaron Private Server - 1 Replies
I have a problem with syntax can someone help:
http://img192.imageshack.us/img192/1248/erro1m.jp g
Code:
USE ;
[Hilfe]Parse error: syntax error
10/27/2009 - Metin2 Private Server - 6 Replies
Also hab IS -Script per xampp on und beim einloggen kommt der fehler hier
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\default1.php on line 875
Help pls
Thx
Freaky
[HELP] Mysql Syntax Error
02/12/2009 - EO PServer Hosting - 6 Replies
hi guyz
i dump my sql file " cq_action " then i used this query " delete from my2. cq_action " to clear it and remove all records ,
then i copy what in the dumped file , and past it on query page , and it keep give me this error http://img223.imageshack.us/img223/4476/81192104oe 1.th.jpg
here is the line that might have the error
INSERT INTO `cq_action` VALUES ('5220942', '5220943', '0000', '0101', '0',...
Syntax ERROR?!
10/27/2008 - General Coding - 9 Replies
hi,
ich wollte an den start meines Script ein HotKeySet einfügen aber wenn ich das mache kommt: Syntax ERROR
hier mein Script(beispiel):
HotKeySet("{numpad1},"start")
MsgBox(0,"titel","text")
ich glaub ich bin zu blöd was ist da falsch?...wenn ihr meint da fehlt ein " hab ich schon probiert geht nicht, oder ich hab es an der falschen Stelle eingefügt.
All times are GMT +2. The time now is 09:20 .