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
~RButton:: | |
mouseGetPos, cursor_x, cursor_y, , control_under_cursor | |
if winActive("ahk_exe AutoHotkey.exe") and winActive("ahk_class #32770") | |
and (control_under_cursor = "Button1") ;# if msgBox window | |
{ | |
winGetText, msg_text, a | |
loop | |
{ ; remove button text | |
controlGetText, button_text, % "button" a_index, a |
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
ordinal(number) { | |
stringRight, last_digit, number, 1 | |
stringRight, last_two , number, 2 | |
if (last_digit = 1) | |
suffix := "st" | |
else if (last_digit = 2) | |
suffix := "nd" | |
else if (last_digit = 3) | |
suffix := "rd" |
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 | |
; #hotstring * ; send each hotstring without needing to type an endkey (space, enter etc) | |
sp := a_space ; send a space after each hotstring | |
return ; ----------------------------------------------------------------------- | |
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
/* | |
[search folders] | |
folder_1 = | |
folder_2 = | |
[ignore paths] | |
C:\Users\documents\scripts\example script name.ahk | |
C:\Users\documents\scripts\example folder name | |
[settings] |
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
randomer(min="", max="") { | |
static last_random | |
loop, | |
random, this_random, % min, % max | |
until (this_random != last_random) | |
last_random := this_random | |
return this_random | |
} |
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
/* | |
[built-in defaults] | |
a_autoTrim = on | |
a_batchLines = 10ms | |
a_controlDelay = 20 | |
a_coordModeCaret = screen | |
a_coordModeMenu = screen | |
a_coordModeMouse = screen | |
a_coordModePixel = screen | |
a_coordModeToolTip = screen |
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
#if WinActive("ahk_class Chrome_WidgetWin_1") ; chrome | |
or WinActive("ahk_class MozillaWindowClass") ; firefox | |
!r::goSub, root_url | |
#if | |
root_url: | |
revert_clipboard := clipboardAll |
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
#if WinActive("ahk_class Chrome_WidgetWin_1", , "ahk_class #32770") | |
or WinActive("ahk_class MozillaWindowClass", , "ahk_class #32770") | |
^+l::goSub, google_time_range | |
#if | |
google_time_range: |
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
start_with_windows(seperator="", menu_name="tray") { | |
global sww_shortcut, sww_menu | |
sww_menu := menu_name | |
if (seperator = "1") or (seperator = "3") | |
menu, % sww_menu, add, | |
menu, % sww_menu, add, Start with Windows, start_with_windows | |
splitPath, a_scriptFullPath, , , , script_name | |
sww_shortcut := a_startup "\" script_name ".lnk" |