Jump to content

Syntax Error


Recommended Posts

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?

Link to comment
Share on other sites

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)
Link to comment
Share on other sites

$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 by Zedna
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...