Auto Hot Key
213 subscribers
7 files
17 links
Created using ahk with love ❤️

@Lencore
Download Telegram
Web Database

Онлайн-база данных, которую можно использовать в проектах вместо поднятия своей. Цены максимально доступные: $1 за каждый 1 млн обычных запросов и $1 за каждые 10,000 запросов CREATE.

Online database which can be used in own projects instead of deploying another ones. Prices are cool: $1 for each $1M requests and $1 for each 10K CREATE requests.

https://m3o.com/db

@AutoHotKey
#API
👍1
Read QR-code

Простой сервис для декодирования QR и баркодов. Принимает картинку в виде ссылки, возвращает содержимое.

A simple service for decoding QR and barcodes. Receives image as URL and returns the content.

http://api.qrserver.com/v1/read-qr-code/?fileurl=URL

@AutoHotKey
#API
Playing Cards API

Сервис для работы с колодой карт. Можно создать колоду, перемешивать, вытягивать карты, раскладывать по стопкам и даже получать изображение карт. Бесплатно.

A service to work with card deck. Creating, shuffling, drawing and adding cards to piles. It even gives an image of cards. Full free.

https://www.deckofcardsapi.com/

@AutoHotKey
#API
👍2🔥1
filter_profanity_russian_cached.txt
45.9 KB
1987 русских матерных слов для фильтра против мата в любом проекте.

1987 russian swear words for filter for any project.

Источник / Source: Steam
@AutoHotKey
👍3
📬 Отправка данных в другой скрипт / Send data to another script

В первой функции меняем ANOTHER SCRIPT на название своего второго скрипта, аргумент функции — что нужно передать. Во втором скрипте после получения данных можно обработать их прямо в функции, либо вернуть в тело и работать там.

In the first function, change ANOTHER SCRIPT onto your another script name, an argument of functions is data to send. In the second function, you can catch data into variable and proceed directly in function or return it to script body.

v2:

Send data:

SendWM(StringToSend)
{
TargetScriptTitle := "ANOTHER SCRIPT.ahk ahk_class AutoHotkey"
CopyDataStruct := Buffer(3*A_PtrSize)
SizeInBytes := (StrLen(StringToSend) + 1) * 2
NumPut( "Ptr", SizeInBytes, "Ptr", StrPtr(StringToSend), CopyDataStruct, A_PtrSize)
DetectHiddenWindows True
SetTitleMatchMode 2
TimeOutTime := 4000
SendMessage(0x004A, 0, CopyDataStruct,, TargetScriptTitle)
}


Get data:

Persistent 1
OnMessage 0x004A, Receive_WM_COPYDATA

Receive_WM_COPYDATA(wParam, lParam, msg, hwnd)
{
data := StrGet(NumGet(lParam, 2*A_PtrSize, "Ptr"))
}


Источник / Source: неизвестно / unknown

@AutoHotKey
#Script
Please open Telegram to view this post
VIEW IN TELEGRAM
👍5
🌐 Rufaydium — упрощенная замена Selenium для ahk v1/2, которая осталась незамеченной. Про него рассказал только Automator, и он же опубликовал версию для V2 под своим "лейблом". Может, кому-то будет полезно. Но так как по инструменту мало гайдов, у него все еще высокий порог входа. Пользуйтесь на здоровье.

🌐 Rufaydium — simplified Selenium analogue for ahk v1/2 that was not mentioned. Only the Automator told about it and published its version for v2 under his "label". Maybe it will be useful for you. There are still few guides about Rufaydium, and it requires some skills to use. Enjoy.

Источник / Source: Xeo786

@AutoHotKey
#Script #Library #Class
💬 Хочешь рассказать о своем проекте или поделиться полезным скриптом, библиотекой или сервисом? Напиши @Lencore

💬 Want to tell about own project or share useful script, library or service? Write me @Lencore
😌 sheet.best — облегчаем работу с Гугл таблицами, превращая работу с ними в REST API. У гугла ужасно замудренные протоколы авторизации, а через сервис все просто — открыл доступ к таблице и добавляешь данные через POST запросы. Попробуйте, если ненавидите OAuth так же, как я. Первый месяц — бесплатно 15к запросов, далее 15к за $10, либо 50к за $20.

😌 sheet.best — make work with Google Sheets much easier by transforming it into REST API. Google has awful auth protocols, and it's solved now: just generate link to your sheet and add new data by sending POST requests. Try it if you hate OAuth as much as me xd. Free 15k requests for the first month, then $10 for 15k or $20 for 50k.

Сайт / Site:
https://sheet.best

Документация / Documentation:
https://docs.sheet.best/#welcome

@AutoHotKey
#Service #API
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
📊 Вычисление среднего отклонения по массиву (стандартная девиация). В основном используется в финансах. Если вы не знаете, для чего он, скорее всего он вам не нужен, но скрипт в любом случае полезный.

📊 Standard deviation calculation for array, Mainly used in finance. If you don't know what it's for, you probably don't need it, but the script is useful anyway.

v1 / v2:

nums := [20.4, 18.0, 1.4, -8.6, -14.4, 3.0, -38.8, 20.9, -4.2, 131.0, -43.2, 4.6]
msgbox Round((StandardDeviation(nums)/100), 2)

StandardDeviation(arr) {
mean := sd2 := 0
for val in arr
mean += val
mean /= arr.Length
for val in arr
sd2 += (val - mean) ** 2
return sqrt(sd2 / arr.Length)
}


Источник / Source:
https://www.autohotkey.com/boards/viewtopic.php?p=560434#p560434

@AutoHotKey
#Script
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1