Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Спасибо ErikSekretniy за помощь на начале.
- ; Спасибо serzh82saratov с форума http://forum.script-coding.com за помощь при написании третьей версии ahk-скрипта
- ; Собрал куски в одно целое FRAMETAMER (я) https://zelenka.guru/fpsbl4/ или https://lolz.guru/fpsbl4/
- ; Thanks to ErikSekretniy for help at the beginning.
- ; Thanks to serzh82saratov from the forum http://forum.script-coding.com for help in writing the third version of ahk-script
- ; Assembled pieces into one whole FRAMETAMER (me) https://zelenka.guru/fpsbl4/ or https://lolz.guru/fpsbl4/
- ; BB-CODES
- ; Хайд по симпатиям
- ; 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.
- ; Для редактирования количества симпатий для открытия хайда требуется ввести числовое значение после "LIKES=", количество симпатий для хайда не должно привышать ваще количество симпатий.
- !vk48:: SelectedWrap("[LIKES=]" , "[/LIKES]") ; Alt + H - Likes hide
- ; Жирный текст
- !vk42:: SelectedWrap("[B]", "[/B]") ; Alt + B - Bold text
- ; Спойлер с названием
- ; To change the name of the spoiler you must enter the desired name of the spoiler in ' ', otherwise it will be called simply "spoiler".
- ; Для изменения названия спойлера необходимо ввести желаемое название спойлера в ' ', иначе он будет называться просто "спойлер".
- !vk53:: SelectedWrap("[SPOILER=' ']" , "[/SPOILER]" ) ; Alt + S - Spoiler
- ; Вставка ссылки в текст
- ; To insert a link into the text, you must enter the desired link in ' ' and enter text between the tags.
- ; Для вставки ссылки в текст необходимо ввести нужную ссылку в ' ' и ввести текст между тегами.
- !vk55:: SelectedWrap("[URL=' ']" , "[/URL]") ; Alt + U - URL
- ; Изменение размера текста
- ; If you need to change the text size, then just change the value "4" to the one you need.
- ; Если вам нужно изменить размер текста, то просто измените значение «4» на нужное вам.
- !vk34:: SelectedWrap("[SIZE=4]" , "[/SIZE] ") ; Alt + 4 - Text size = 4
- ; COLORS
- ; Примечание: что-бы использовать цвета надо переключиться на простой редактор при написании темы и вставлять уже в нём, полнофункциональный редактор по неизвестной мне причине не хочет воспринимать теги с цветами
- ; 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
- ; Розовый
- !vk50:: SelectedWrap("[COLOR=#ff99cc]","[/COLOR] ") ; Alt + P - Pink text = rgb(255, 153, 204) = HEX #ff99cc
- ; Жёлтый
- !vk59:: SelectedWrap("[COLOR=#ffff4d]","[/COLOR] ") ; Alt + Y - Yellow text = rgb(255, 255, 77) = HEX #ffff4d
- ; Зелёный
- !vk41:: SelectedWrap("[COLOR=#4dff4d]","[/COLOR] ") ; Alt + A - Green text = rgb(77, 255, 77) = HEX #4dff4d
- ; FUNCTION
- SelectedWrap(p1, p2) {
- TempClipboard := ClipboardAll
- Clipboard =
- SendInput {LCtrl Down}{vk43}{LCtrl Up} ;; "C"
- ClipWait, 0.3
- If ErrorLevel
- Return 0, Clipboard := TempClipboard
- Clipboard := p1 Clipboard p2
- Sleep 150
- Send {LCtrl Down}{sc2F}{LCtrl Up} ; "V"
- Sleep 150
- Return 1, Clipboard := TempClipboard
- }
Add Comment
Please, Sign In to add comment