SHARE
TWEET

Replace Russian bad ID3 to UTF8 ID3

Rich4rd Nov 18th, 2019 417 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;===============================================================================================
  2. ;Search and Replace Russian bad ID3 to UTF8 ID3
  3. #If WinActive("ahk_class #32770") || WinActive("ahk_class Notepad") || WinActive("ahk_exe IDTE.exe") || WinActive("ahk_exe Mp3tag.exe") || WinActive("ahk_class TFormTagEditor") || WinActive("AIMP: Advanced Tag Editor") || WinActive("ahk_class TMain")
  4. ^t::
  5. Clipboard:= ""
  6. Send, ^a
  7. Send, ^x ;cuts selected text
  8. ClipWait
  9. StringCaseSense on
  10. ControlGetText,text,Edit1,ahk_class Notepad
  11. ControlGetText,text,Edit10,ahk_class #32770
  12. Loop,parse,text,`n, `r
  13. If (A_LoopField!="")
  14.     newText.=A_LoopField "`r`n"
  15. ControlSetText,Edit1,%newText%,ahk_class Notepad
  16. ;ControlSetText,Edit1,%newText%,ahk_class #32770
  17.  
  18. StringReplace, clipboard, clipboard, À, А, All
  19. StringReplace, clipboard, clipboard, à, а, All
  20. StringReplace, clipboard, clipboard, Á, Б, All
  21. StringReplace, clipboard, clipboard, á, б, All
  22. StringReplace, clipboard, clipboard, Â, В, All
  23. StringReplace, clipboard, clipboard, â, в, All
  24. StringReplace, clipboard, clipboard, Ã, Г, All
  25. StringReplace, clipboard, clipboard, ã, г, All
  26. StringReplace, clipboard, clipboard, Ä, Д, All
  27. StringReplace, clipboard, clipboard, ä, д, All
  28. StringReplace, clipboard, clipboard, Å, Е, All
  29. StringReplace, clipboard, clipboard, å, е, All
  30. StringReplace, clipboard, clipboard, ¨, Ё, All
  31. StringReplace, clipboard, clipboard, ¸, ё, All
  32. StringReplace, clipboard, clipboard, Æ, Ж, All
  33. StringReplace, clipboard, clipboard, æ, ж, All
  34. StringReplace, clipboard, clipboard, Ç, З, All
  35. StringReplace, clipboard, clipboard, ç, з, All
  36. StringReplace, clipboard, clipboard, È, И, All
  37. StringReplace, clipboard, clipboard, è, и, All
  38. StringReplace, clipboard, clipboard, É, Й, All
  39. StringReplace, clipboard, clipboard, é, й, All
  40. StringReplace, clipboard, clipboard, Ê, К, All
  41. StringReplace, clipboard, clipboard, ê, к, All
  42. StringReplace, clipboard, clipboard, Ë, Л, All
  43. StringReplace, clipboard, clipboard, ë, л, All
  44. StringReplace, clipboard, clipboard, Ì, М, All
  45. StringReplace, clipboard, clipboard, ì, м, All
  46. StringReplace, clipboard, clipboard, Í, Н, All
  47. StringReplace, clipboard, clipboard, í, н, All
  48. StringReplace, clipboard, clipboard, Î, О, All
  49. StringReplace, clipboard, clipboard, î, о, All
  50. StringReplace, clipboard, clipboard, Ï, П, All
  51. StringReplace, clipboard, clipboard, ï, п, All
  52. StringReplace, clipboard, clipboard, Ð, Р, All
  53. StringReplace, clipboard, clipboard, ð, р, All
  54. StringReplace, clipboard, clipboard, Ñ, С, All
  55. StringReplace, clipboard, clipboard, ñ, с, All
  56. StringReplace, clipboard, clipboard, Ò, Т, All
  57. StringReplace, clipboard, clipboard, ò, т, All
  58. StringReplace, clipboard, clipboard, Ó, У, All
  59. StringReplace, clipboard, clipboard, ó, у, All
  60. StringReplace, clipboard, clipboard, Ô, Ф, All
  61. StringReplace, clipboard, clipboard, ô, ф, All
  62. StringReplace, clipboard, clipboard, Õ, Х, All
  63. StringReplace, clipboard, clipboard, õ, х, All
  64. StringReplace, clipboard, clipboard, Ö, Ц, All
  65. StringReplace, clipboard, clipboard, ö, ц, All
  66. StringReplace, clipboard, clipboard, ×, Ч, All
  67. StringReplace, clipboard, clipboard, ÷, ч, All
  68. StringReplace, clipboard, clipboard, Ø, Ш, All
  69. StringReplace, clipboard, clipboard, ø, ш, All
  70. StringReplace, clipboard, clipboard, Ù, Щ, All
  71. StringReplace, clipboard, clipboard, ù, щ, All
  72. StringReplace, clipboard, clipboard, Ú, Ъ, All
  73. StringReplace, clipboard, clipboard, ú, ъ, All
  74. StringReplace, clipboard, clipboard, Û, Ы, All
  75. StringReplace, clipboard, clipboard, û, ы, All
  76. StringReplace, clipboard, clipboard, Ü, Ь, All
  77. StringReplace, clipboard, clipboard, ü, ь, All
  78. StringReplace, clipboard, clipboard, Ý, Э, All
  79. StringReplace, clipboard, clipboard, ý, э, All
  80. StringReplace, clipboard, clipboard, Þ, Ю, All
  81. StringReplace, clipboard, clipboard, þ, ю, All
  82. StringReplace, clipboard, clipboard, ß, Я, All
  83. StringReplace, clipboard, clipboard, ÿ, я, All
  84.  
  85. Send %Clipboard%
  86. Send, ^a ;selects all text
  87. Send, ^v ;pastes selected text
  88. return
  89. #IfWinActive
  90.  
  91. ;======================================================================================================
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top