Skip to content

Instantly share code, notes, and snippets.

@yaqinking
yaqinking / autohotkey-convert-code-in-notepad-plus-plus.ahk
Last active December 8, 2016 07:15
在 Notepad++ 里面转换编码
; yaqinking
; ctrl alt 3 是窝在 Notepad++ 里设置的转换编码到 UCS2LE 的快捷键
; 按 ctrl alt v 之后执行 输入数量 次转换编码的操作
^!v::
InputBox, FileCount, 文件数量, 请输入要转换的文件数量, , 320, 120
Loop, %FileCount%
{
Send ^!3
sleep 50
@yaqinking
yaqinking / add-float-system-control-to-kagex.tjs
Last active January 18, 2017 02:40
添加浮动的系统控制到 KAGEX 中
// put under code to AfterInit.tjs
// 浮动系统控制的 message layer index,在 macro 里初始化的带 button 的 message layer 和这个数字要相同
var float_sys_control_layer_index = 5;
/**
* 鼠标移动的 callback
* 添加鼠标移动到指定位置显示 layer
*/
function mouseMoveFunc(x, y, shift) {
//dm("mouseMoveFunc x-> ", x, " y->", y, " shift-> ", shift);
@yaqinking
yaqinking / MainWindow.tjs
Last active February 13, 2017 05:11
MainWindow modified version #kag
with (selectLayer) {
var msgoff = false, msgon = false;
if (elm.msgoff) msgoff = true;
else if (elm.msgon ) msgon = true;
else {
msgoff = typeof .msgoff != "undefined" && !!.msgoff;
msgon = typeof .msgon != "undefined" && !!.msgon;
}
if (msgoff) {
kag.fore.messages[float_sys_control_layer_index].setVisibleTime(false, 300);
@yaqinking
yaqinking / TricolourLovestorySteamSpy.py
Created September 22, 2017 18:06
Windows 10 local push notification python script to see Tricolour Lovestory owners number.
'''
Windows 10 local push notification python script to see Tricolour Lovestory owners number.
by yaqinking
See image: https://i.imgur.com/fC69kJs.png
'''
import requests
from win10toast import ToastNotifier #https://github.com/jithurjacob/Windows-10-Toast-Notifications
{"*":{"_enabled":true,"_rules":{"body":{"font-family":"\"Noto Sans CJK SC\""}}},"tweetdeck.twitter.com":{"_enabled":true,"_rules":{"html.dark .is-wide-columns .media-size-medium":{"height":"353px"}}}}