sadrux
1/7/2019 - 1:44 AM

my autohotkey gists

my autohotkey gists

namedescriptionversion
change casechange the case of selected text
dynaclipbasic web clipper for dynalist.io
file propertiesopen properties for the selected file1.1
google time range🔎switch between the various time ranges (hour, day, week, month, year)
goto open folder📂show a list of open folders when youre at a "save as" or "open" dialog1.3
lightshot+various improvements for the lightshot screenshot app0.4.3
linker🔗generate a markdown link from the clipboard or selection2.1
media keysturn any key into a media key, then double tap to send the original key1.2
onTop🎩manage 'always on top' windows from a context menu0.2
open with sublime text(for the portable version that lacks the context menu option)
peek under👁️peek under the current window without deactivating it0.3
quick dates📆hotstrings to quickly type various date formats2.1
restart clipboardremember the clipboard state between restarts/shutdowns
root urlload the root url of the current webpage
shift windowswindow management hotkeys remapped for one handed use
spotify operatorssearch operator hotstrings: album:, artist:, year: etc1.5
[square tag]🏷️add a tagspaces style [tag] to a filename0.3.1
text wrapwrap selected text in <symbols>2.4
text replacereplace a character with another, interactively1.0
text swapswap text at a certain character or word1.1
tiny clipboard📋microscopic clipboard manager (text only)1.2
youtube/vlc hotkeysvlc hotkeys remapped to match youtube's hotkeys

 

misc

file explorer previewsview .ahk files in windows explorer preview pane
long press key listmy key list for long press.ahk
sublime snippetssublime text auto-complete snippets for some of the functions below

 

scripting

namedescriptionversion
all script settingsfull list script settings to be #included in your main script or used as a quick reference
auto_include()📃create a list of .ahk files to be #included in your main script1.10
built_in()change, restore or reset various built-in script settings1.1
clipboard()one line clipboard commands1.1
close ahk errorssave to close any ahk error windows
compile()📦compile an .ahk file to .exe with the option to search for an icon
ex_this()💈combine auto-execute sections from #included scripts into your main script0.3.6
goto ahk helpsearch the selected word in the local autohotkey .chm help file1.4
goto errorgoto line and highlight the error text (autohotkey/sublime text only)3.4
list_vars()🐛list the variables in the current file or label/hotkey/function
msgbox checkcheck the text in a msgbox for trailing characters1.2
msg()💬message commands that are quick to type and easy to switch between2.5
reloadr🚚reload running scripts from a context menu0.7
run at startuptray option to run your scripts at startup3.0
script_icon()🖼️automagically search for an icon that matches the script name
strip()🥓strip comments, comments blocks and empty lines from a string2.3.1
timer()a_tickCount or "QueryPerformanceCounter" timer
tray menu defaultsdefault items/actions for the tray menu

snippets

between()split between two characters/words/sentences
counter_reset()keep a number within a certain range when adding/subtracting
clear_split()clear a split array/object array
days_in_month()find how many days are in a given month
double_tap()double tap a key to send a hotkey or a label
get_selected()gets selected text (or path of selected file/folder)
ordinal()add an ordinal suffix to a number (1st, 2nd, 3rd etc)
passed()get the parameters that have been passed to the script
quote()wrap a string in quotes
randomer()the default random command but without returning the same number twice in a row
send_hotkey()prepare hotkey text for the send command: ^!a to ^!{a}
sp()return or append a singular/plural suffix
stored_in()get the variable stored in a name
sublime_file()get the file that is open/focused in sublime text
truncate()truncate a string