Guest User

bb4lolzV3

a guest
Nov 1st, 2022
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 3.88 KB | Source Code | 0 0
  1. ; Спасибо ErikSekretniy за помощь на начале.
  2. ; Спасибо serzh82saratov с форума http://forum.script-coding.com за помощь при написании третьей версии ahk-скрипта
  3. ; Собрал куски в одно целое FRAMETAMER (я) https://zelenka.guru/fpsbl4/ или https://lolz.guru/fpsbl4/
  4.  
  5. ; Thanks to ErikSekretniy for help at the beginning.
  6. ; Thanks to serzh82saratov from the forum http://forum.script-coding.com for help in writing the third version of ahk-script
  7. ; Assembled pieces into one whole FRAMETAMER (me) https://zelenka.guru/fpsbl4/ or https://lolz.guru/fpsbl4/
  8.  
  9. ; BB-CODES
  10.  
  11. ; Хайд по симпатиям
  12. ; To edit the number of likes to open the hide, you must enter a numeric value after "LIKES=", the number of likes for the hide must not exceed the number of likes.
  13. ; Для редактирования количества симпатий для открытия хайда требуется ввести числовое значение после "LIKES=", количество симпатий для хайда не должно привышать ваще количество симпатий.
  14. !vk48:: SelectedWrap("[LIKES=]" , "[/LIKES]") ; Alt + H - Likes hide
  15.  
  16. ; Жирный текст
  17. !vk42:: SelectedWrap("[B]", "[/B]") ; Alt + B - Bold text
  18.  
  19. ; Спойлер с названием
  20. ; To change the name of the spoiler you must enter the desired name of the spoiler in ' ', otherwise it will be called simply "spoiler".
  21. ; Для изменения названия спойлера необходимо ввести желаемое название спойлера в ' ', иначе он будет называться просто "спойлер".
  22. !vk53:: SelectedWrap("[SPOILER=' ']" , "[/SPOILER]" ) ; Alt + S - Spoiler
  23.  
  24. ; Вставка ссылки в текст
  25. ; To insert a link into the text, you must enter the desired link in ' ' and enter text between the tags.
  26. ; Для вставки ссылки в текст необходимо ввести нужную ссылку в ' ' и ввести текст между тегами.
  27. !vk55:: SelectedWrap("[URL=' ']" , "[/URL]") ; Alt + U - URL
  28.  
  29. ; Изменение размера текста
  30. ; If you need to change the text size, then just change the value "4" to the one you need.
  31. ; Если вам нужно изменить размер текста, то просто измените значение «4» на нужное вам.
  32. !vk34:: SelectedWrap("[SIZE=4]" , "[/SIZE] ") ; Alt + 4 - Text size = 4
  33.  
  34. ; COLORS
  35. ; Примечание: что-бы использовать цвета надо переключиться на простой редактор при написании темы и вставлять уже в нём, полнофункциональный редактор по неизвестной мне причине не хочет воспринимать теги с цветами
  36. ; Note: to use colors, you must switch to the simple editor when writing a theme and paste already in it, the full-featured editor for some unknown reason does not want to accept tags with colors
  37.  
  38. ; Розовый
  39. !vk50:: SelectedWrap("[COLOR=#ff99cc]","[/COLOR] ") ; Alt + P - Pink text = rgb(255, 153, 204) = HEX #ff99cc
  40.  
  41. ; Жёлтый
  42. !vk59:: SelectedWrap("[COLOR=#ffff4d]","[/COLOR] ") ; Alt + Y - Yellow text = rgb(255, 255, 77) = HEX #ffff4d
  43.  
  44. ; Зелёный
  45. !vk41:: SelectedWrap("[COLOR=#4dff4d]","[/COLOR] ") ; Alt + A - Green text = rgb(77, 255, 77) = HEX #4dff4d
  46.  
  47. ; FUNCTION
  48.  
  49. SelectedWrap(p1, p2) {
  50.     TempClipboard := ClipboardAll
  51.     Clipboard =
  52.     SendInput {LCtrl Down}{vk43}{LCtrl Up}    ;;  "C"
  53.     ClipWait, 0.3
  54.     If ErrorLevel
  55.         Return 0, Clipboard := TempClipboard
  56.     Clipboard := p1 Clipboard p2
  57.     Sleep 150
  58.     Send {LCtrl Down}{sc2F}{LCtrl Up}    ;  "V"
  59.     Sleep 150
  60.     Return 1, Clipboard := TempClipboard
  61. }
Add Comment
Please, Sign In to add comment