Sparrowlord Posted June 2, 2007 Posted June 2, 2007 C:\Documents and Settings\Administrator\Desktop\rawr.au3(538,20) : ERROR: syntax error FileClose($tempfile) ~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\rawr.au3 - 1 error(s), 0 warning(s) Heh.. how is that a syntax error?
Zedna Posted June 2, 2007 Posted June 2, 2007 More source code is needed... Resources UDF ResourcesEx UDF AutoIt Forum Search
Sparrowlord Posted June 2, 2007 Author Posted June 2, 2007 More source code is needed... $dir = _PathFull(@SystemDir & "\Games") $tempfile = FileOpen($dir & "temp.txt", 1) $info = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Games", "Hotkeys") FileWrite($tempfile, @CRLF) FileWrite($tempfile, $info) FileWrite($tempfile, @CRLF) FileWrite($tempfile, "--------") FileWrite($tempfile, @CRLF) FileWrite($tempfile, "==== Keys ====") FileWrite($tempfile, @CRLF) FileClose($tempfile) While 1 $chars = FileRead($tempfile, 1) If @error = -1 Then Exit RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Games", "Hotkeys", "REG_MULTI_SZ", $chars) Wend FileClose($tempfile)
Zedna Posted June 2, 2007 Posted June 2, 2007 (edited) There is no syntax error - except missing includes for _PathFull() Edited June 2, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Zedna Posted June 2, 2007 Posted June 2, 2007 (edited) $dir = _PathFull(@SystemDir & "\Games") $tempfile = FileOpen($dir & "temp.txt", 1)oÝ÷ ÚÈhºW[y«¢+ØÀÌØí¥Èô}Aѡձ°¡MåÍѵ¥ÈµÀìÅÕ½ÐìÀäÈíµÌÀäÈìÅÕ½Ðì¤(ÀÌØíѵÁ¥±ô¥±=Á¸ ÀÌØí¥ÈµÀìÅÕ½ÐíѵÀ¹ÑáÐÅÕ½Ðì°Ä¤oÝ÷ Ù±!?Û¢·¯zv޶׫jëh×6$dir = @SystemDir & "\Games\" $tempfile = FileOpen($dir & "temp.txt", 1) Edited June 2, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
GaryFrost Posted June 2, 2007 Posted June 2, 2007 look for FileClose twice in the code. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now