home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / RegWrite.au3 < prev    next >
Text File  |  2004-09-22  |  512b  |  12 lines

  1. ; Write a single REG_SZ value
  2. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_SZ", "Hello this is a test")
  3.  
  4.  
  5. ; Write the REG_MULTI_SZ value of "line1" and "line2"
  6. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_MULTI_SZ", "line1" & @LF & "line2")
  7.  
  8. ; INCORRECT uses of REG_MULTI_SZ 
  9. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_MULTI_SZ", "line1" & @LF & "line2" & @LF)
  10. RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE", "TestKey", "REG_MULTI_SZ", "line1" & @LF & @LF & "line2" & @LF)
  11.  
  12.