π | google show keyboard | show the keyboard input when the Google app is opened (AutoInput required) |
π¦ | shake torch | shake your phone to toggle the torch |
Β
#ifWinActive ahk_class QWidget ; vlc | |
k::send {space} ; play/pause | |
~LButton:: ; click video to play/pause | |
keyWait, LButton | |
keyWait, LButton, D T.2 | |
if (errorLevel) | |
{ |
#ifWinActive ahk_class CabinetWClass ; file Explorer | |
^+e:: | |
revert_clipboard := clipboardAll | |
clipboard = | |
send ^{c} | |
clipWait, 0.3 | |
sublime_path := portable_apps "\SublimeText3\sublime_text.exe" | |
if fileExist(clipboard) | |
run, %sublime_path% "%clipboard%", , useErrorLevel |
sublime_file() { | |
winGetTitle, sublime_title, ahk_exe sublime_text.exe | |
splitPath, sublime_title, , file_dir, file_ext, name_no_ext | |
split := strSplit(file_ext, a_space) ; remove project name or β’ from an unsaved file | |
return file_dir "\" name_no_ext "." split[1] | |
} | |
/* | |
description = get the file that is open/focused in sublime text |
<TaskerData sr="" dvi="1" tv="4.8u5m"> | |
<Profile sr="prof561" ve="2"> | |
<cdate>1454802995915</cdate> | |
<edate>1482880134621</edate> | |
<id>561</id> | |
<mid0>562</mid0> | |
<nme>shake torch</nme> | |
<pri>20</pri> | |
<State sr="con0" ve="2"> | |
<code>120</code> |
π | google show keyboard | show the keyboard input when the Google app is opened (AutoInput required) |
π¦ | shake torch | shake your phone to toggle the torch |
Β
stored_in(variable_name) { | |
stored_in := %variable_name% | |
return stored_in | |
} | |
/* | |
[script info] | |
description = get the variable stored in a name | |
*/ |
passed() { | |
global 0 | |
loop, %0% | |
params .= (params ? a_space : "") . %a_index% | |
return params | |
} | |
/* | |
[script info] |
!u::goSub, set_upper_case | |
!l::goSub, set_lower_case | |
!t::goSub, set_title_case | |
set_upper_case: | |
set_lower_case: | |
set_title_case: | |
revert_clipboard := clipboardAll |
#if winActive("ahk_class #32770") ; "save", "save as" or "open" | |
^+l::goSub, list_open_folders | |
#if | |
list_open_folders: | |
for a in comObjCreate("shell.application").windows | |
{ | |
if !inStr(a.document.folder.self.path, "::{") ; ignore recycle bin & my pc | |
menu, open_folders, add, % a.document.folder.self.path, goto_open_folder |
; name ; options (* means default) ; description | |
; ------------------------------ ; -------------------------------- ; --------------------------------------------------------- | |
; #ClipboardTimeout -1 ; -1|0|1000* (Milliseconds) ; Changes how long the script keeps trying to access the clipboard when the first attempt fails | |
; #CommentFlag ; NewString ; Changes the script's comment symbol from semicolon to some other string | |
; #ErrorStdOut ; ; Sends any syntax error that prevents a script from launching to stderr rather than displaying a dialog | |
; #EscapeChar ; NewChar ; Changes the script's escape character (e.g. accent vs. backslash) | |
; #HotkeyInterval ; 2000* (Milliseconds) ; Along with #MaxHotkeysPerInterval, specifies the rate of hotkey activations beyond which a warning dialog will be displayed | |
; #H |