Advertisement
rekah

GénérationFonts.txt

Jan 8th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.57 KB | None | 0 0
  1. $numberOfFile = 0
  2. $fontList = 0
  3. $fontListInFontFile = @WindowsDir & "\Fonts\"
  4. $ArrayOfFontListInfFontFile = _FileListToArray($fontListInFontFile, "*.TTF", 1)
  5. For $element In $ArrayOfFontListInfFontFile
  6.     $numberOfFile = $numberOfFile + 1
  7. Next
  8. For $counter = 1 To $numberOfFile
  9.     $RegValue = RegEnumVal("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Fonts", $counter)
  10.     FileWrite($fileFont, $RegValue & @CRLF)
  11. Next
  12. _ReplaceStringInFile($fileFont, "(TrueType)", "")
  13. _ReplaceStringInFile($fileFont, "Bold", "")
  14. _ReplaceStringInFile($fileFont, "Italic", "")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement