🔥 AutoHotKey
Добро пожаловать. Здесь собраны полезные скрипты и функции со всего интернета, написанные на AutoHotKey. Чтобы предложить скрипт для публикации, напишите @Lencore.
Welcome. Here we collect useful scripts and functions from all the Internet created with AutoHotKey. To suggest a script to publish contact @Lencore.
Добро пожаловать. Здесь собраны полезные скрипты и функции со всего интернета, написанные на AutoHotKey. Чтобы предложить скрипт для публикации, напишите @Lencore.
Welcome. Here we collect useful scripts and functions from all the Internet created with AutoHotKey. To suggest a script to publish contact @Lencore.
📂 Folder Maze
Скрипт создает лабиринт из папок. Например: 5 папок, в каждой из которых по 5 папок, в каждой из которых еще по 5 папок и так далее. Размеры лабиринта можно выбрать. Имена генерируются с помощью рандомных чисел. Рекомендую не выбирать все по максимуму, потому что это создаст более 590 триллионов папок на ПК, которые будет трудновато удалить.
The script creates a maze using folders. For example, 5 folders including 5 more folders including 5 more folders etc. Size of maze is changeable. Names of folders are generating using random numbers. It is recommended to choose maximum parameters due to process of creating of 590 trillion of folders that can't be removed easily.
Автор / Author: @Lencore
#App
Скрипт создает лабиринт из папок. Например: 5 папок, в каждой из которых по 5 папок, в каждой из которых еще по 5 папок и так далее. Размеры лабиринта можно выбрать. Имена генерируются с помощью рандомных чисел. Рекомендую не выбирать все по максимуму, потому что это создаст более 590 триллионов папок на ПК, которые будет трудновато удалить.
The script creates a maze using folders. For example, 5 folders including 5 more folders including 5 more folders etc. Size of maze is changeable. Names of folders are generating using random numbers. It is recommended to choose maximum parameters due to process of creating of 590 trillion of folders that can't be removed easily.
Автор / Author: @Lencore
#App
🔄 Переводчик
Нужно выделить любой текст и нажать Ctrl + C + C, сразу же откроется диалоговое окно с интерфейсом полноценного переводчика (с разными языками и озучкой) от Google. Возможно пригодится в телеграме, потому что в браузере легче нажать ПКМ > Перевести.
Select any text and press Ctrl + C + C, a dialog box will immediately open with the interface of a full-fledged translator (with different languages and audio) using Google. Perhaps it will come in handy in telegram, because in the browser it is easier to press RMB > Translate.
Автор / Author: teadrinker
#App
Нужно выделить любой текст и нажать Ctrl + C + C, сразу же откроется диалоговое окно с интерфейсом полноценного переводчика (с разными языками и озучкой) от Google. Возможно пригодится в телеграме, потому что в браузере легче нажать ПКМ > Перевести.
Select any text and press Ctrl + C + C, a dialog box will immediately open with the interface of a full-fledged translator (with different languages and audio) using Google. Perhaps it will come in handy in telegram, because in the browser it is easier to press RMB > Translate.
Автор / Author: teadrinker
#App
🔹 Определение размера изображения в PSD/PSB-файле
Информацию о размерах изображения в psd/psb-файле можно получить из его заголовка (File Header Section). Высота изображения находится по смещению 14 от начала заголовка, ширина по смещению 18. Данные записаны в формате big-endian, для конвертации в формат little-endian, используемый в процессорах архитектуры x86-64, можно применить api-функцию ntohl().
В скрипте надо указать путь к файлу и запустить скрипт.
Information about the size of the image in the psd / psb file can be obtained from its header (File Header Section). The height of the image is at offset 14 from the beginning of the header, the width is at offset 18. The data is written in big-endian format, to convert to the little-endian format used in x86-64 architecture processors, you can use the ntohl() api function.
In the script, you must specify the path to the file and run the script.
Автор / Author: teadrinker
#App
Информацию о размерах изображения в psd/psb-файле можно получить из его заголовка (File Header Section). Высота изображения находится по смещению 14 от начала заголовка, ширина по смещению 18. Данные записаны в формате big-endian, для конвертации в формат little-endian, используемый в процессорах архитектуры x86-64, можно применить api-функцию ntohl().
В скрипте надо указать путь к файлу и запустить скрипт.
Information about the size of the image in the psd / psb file can be obtained from its header (File Header Section). The height of the image is at offset 14 from the beginning of the header, the width is at offset 18. The data is written in big-endian format, to convert to the little-endian format used in x86-64 architecture processors, you can use the ntohl() api function.
In the script, you must specify the path to the file and run the script.
Автор / Author: teadrinker
#App
🔎 Google From Everywhere
Скрипт позволяет загуглить выделенный текст из любого окна, либо посмотреть значение выделенного слова. Чтобы загуглить, нужно выделить текст и нажать Win + Shift + G. Для просмотра значения — Win + Shift + W.
The script allows to google selected text from any window or to google any query with "definition" word. Select any text and press Win + Shift + G to google or press Win + Shift + G to get definition of word using Google Dictionary.
Автор / Author: @ArminGh02
#App
Скрипт позволяет загуглить выделенный текст из любого окна, либо посмотреть значение выделенного слова. Чтобы загуглить, нужно выделить текст и нажать Win + Shift + G. Для просмотра значения — Win + Shift + W.
The script allows to google selected text from any window or to google any query with "definition" word. Select any text and press Win + Shift + G to google or press Win + Shift + G to get definition of word using Google Dictionary.
Автор / Author: @ArminGh02
#App
🔢 FormatNumber()
Функция превращает обычные числа в более читаемые, разделяя каждые три символа с конца числа запятой для улучшения читаемости. Символ разделения можно заменить на пробел, точку или любой другой. В приложении код для первой и второй версии ahk.
The function creates comma-separated numbers from integers for better readability. It separates every 3 symbols from the ending by comma. Separator can be changed to space, dot etc. There are scripts for both ahk v1 and v2 in the attachment.
v1:
v2: @Lencore
#Script
Функция превращает обычные числа в более читаемые, разделяя каждые три символа с конца числа запятой для улучшения читаемости. Символ разделения можно заменить на пробел, точку или любой другой. В приложении код для первой и второй версии ahk.
The function creates comma-separated numbers from integers for better readability. It separates every 3 symbols from the ending by comma. Separator can be changed to space, dot etc. There are scripts for both ahk v1 and v2 in the attachment.
v1:
FormatNumber(Amount) {v2:
StringReplace Amount, Amount, -
IfEqual ErrorLevel,0, SetEnv Sign,-
Loop Parse, Amount, .
If (A_Index = 1) {
len := StrLen(A_LoopField)
Loop Parse, A_LoopField
If (Mod(len-A_Index,3) = 0 and A_Index != len)
x = %x%%A_LoopField%,
Else x = %x%%A_LoopField%
} Else Return Sign x " " A_LoopField
Return Sign x
}
FormatNumber(Amount)Источник / Source: link
{
Amount := StrReplace(Amount, "-",,,, 1)
x := ""
Sign := ""
Loop Parse, Amount, "."
If (A_Index = 1) {
len := StrLen(A_LoopField)
Loop Parse, A_LoopField
If (Mod(len-A_Index,3) = 0 and A_Index != len)
x := x . "" . A_LoopField . ","
Else x := x . "" . A_LoopField
} Else Return Sign x " " A_LoopField
Return Sign x
}
v2: @Lencore
#Script
🔥 AutoHotKey
Добро пожаловать. Здесь собраны полезные скрипты и функции со всего интернета, написанные на AutoHotKey. Чтобы предложить скрипт для публикации, напишите @Lencore.
Welcome. Here we collect useful scripts and functions from all the Internet created with AutoHotKey. To suggest a script to publish contact @Lencore.
Добро пожаловать. Здесь собраны полезные скрипты и функции со всего интернета, написанные на AutoHotKey. Чтобы предложить скрипт для публикации, напишите @Lencore.
Welcome. Here we collect useful scripts and functions from all the Internet created with AutoHotKey. To suggest a script to publish contact @Lencore.