sublime text auto-complete snippets for some of my autohotkey scripts
- between
- built in
#ifWinActive ahk_exe Lightshot.exe | |
enter:: | |
winGetTitle, window_title, ahk_exe Lightshot.exe | |
if inStr(window_title, "save") | |
send {enter} | |
else send ^{s} | |
return | |
#ifWinActive |
[long press] | |
1 = {!} | |
2 = {"} | |
3 = {U+20AC} ; € euro symbol | |
4 = {$} | |
5 = {%} | |
6 = {^} | |
7 = {&} | |
8 = {*} | |
9 = {(} |
^![::linker("markdown") | |
^!,::linker("html") | |
^!/::linker("bbcode") | |
linker(link_type) { | |
revert_clipboard := clipboardAll | |
1st_clipboard := trim(clipboard) | |
clipboard := "" |
/* | |
[script info] | |
version = 1.6.1 | |
description = list the variables in the current file or label/hotkey/function | |
ahk version = 1.1.24.04 | |
author = davebrny | |
source = https://gist.github.com/davebrny/d5cf686619a3402f1426277a3359521d | |
*/ | |
list_vars(path, extra, scope="", ignore_vars="") { |
sublime text auto-complete snippets for some of my autohotkey scripts
timer_start(name="a"){ | |
global | |
stringReplace, name, name, % a_space, _, all | |
start_tick_%name% := a_tickCount | |
dllCall("QueryPerformanceCounter", "Int64*", start_qpc_%name%) | |
} | |
;# compile file(s) passed to this script | |
path_total = %0% | |
loop, % path_total | |
{ | |
ahk_path := %a_index% ; get cmd line parameters | |
if inStr(ahk_path, "~") ; if drag & drop was used | |
{ | |
loop %ahk_path%, 1 ; convert from short path | |
ahk_path := a_loopFileLongPath | |
} |
/* | |
[icon folders] | |
folder_1 = | |
folder_2 = | |
*/ | |
script_icon(ahk_filepath="") { | |
if (ahk_filepath = "") | |
{ | |
icon_name := subStr(a_scriptName, 1, strLen(a_scriptName) - 4) |
#noEnv | |
#singleInstance, force | |
history := [] | |
history_total = 20 | |
truncate = 65 | |
return ; end of auto-execute | |
$^c:: ; add to clipboard history |
/* | |
[script info] | |
version = 0.4 | |
description = basic web clipper for dynalist.io | |
author = davebrny | |
source = https://gist.github.com/davebrny/a23080af7aa3a648c5ce54fb61362416 | |
*/ | |
#noEnv | |
#persistent |