This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
[script info] | |
version = 0.8 | |
description = reload running scripts from a context menu | |
author = davebrny | |
source = https://gist.github.com/davebrny/4f14e1edb4fac2fc2459c3d87fa537f7 | |
[settings] | |
hotkey_menu = ^+` | |
hotkey_default = ^` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#noEnv | |
#singleInstance, force | |
sendMode input | |
return ; end of auto-execute --------------------------------------------------- | |
!s:: goSub, text_swap | |
!+s::goSub, repeat_last_swap | |
; !+s::goSub, repeat_last_swap_interactive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sp(number, string="", suffix="s") { | |
if (string) | |
string := number " " string | |
if (number = 1) | |
return string . "" | |
else return string . suffix | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
quote(string) { | |
return """" string """" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_selected(wait_time="0.3") { | |
revert_clipboard := clipboardAll | |
clipboard := "" ; clear first | |
send ^{c} | |
clipWait, % wait_time | |
selected := clipboard | |
clipboard := revert_clipboard | |
return selected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run_at_startup(seperator="", menu_name="tray") { | |
global ras_shortcut, ras_menu | |
ras_menu := menu_name | |
if (seperator = "1") or (seperator = "3") | |
menu, % ras_menu, add, | |
menu, % ras_menu, add, Run At Startup, run_at_startup | |
splitPath, a_scriptFullPath, , , , script_name | |
ras_shortcut := a_startup "\" script_name ".lnk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear_split(byRef name) { | |
loop, % isObject(name) ? name.maxIndex() : %name%0 | |
{ | |
%name%%a_index% := "" | |
name[a_index] := "" | |
} | |
%name%0 := "" | |
name := "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
[folders] | |
folder_1= | |
folder_2= | |
folder_3= | |
[settings] | |
prefix = LS_ | |
time_format = yyyyMMddhhmmss | |
fullscreen_hotkey = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#noEnv | |
#singleInstance, force | |
return ; end of auto-execute | |
#space::goSub, onTop_menu ; show menu | |
#!space::goSub, toggle_onTop ; toggle the active window | |
^#!space::goSub, minimise_all_onTop |