example key sequence: 2 t 2 = space
2t2=
--->
4
12t11=
--->
132
<TaskerData sr="" dvi="1" tv="4.8u5m"> | |
<Profile sr="prof78" ve="2"> | |
<cdate>1466773290996</cdate> | |
<edate>1466784552162</edate> | |
<id>78</id> | |
<mid0>97</mid0> | |
<nme>search - show keyboard</nme> | |
<App sr="con0" ve="2"> | |
<cls0>com.google.android.googlequicksearchbox.SearchActivity</cls0> | |
<flags>2</flags> |
<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> |
stored_in(variable_name) { | |
stored_in := %variable_name% | |
return stored_in | |
} | |
/* | |
[script info] | |
description = get the variable stored in a name | |
*/ |
between(string, left, right) { | |
if (strLen(left) > 1) ;# if its a word or sentence | |
{ | |
string := strReplace(string, left, "¢") ; replace with symbol | |
left := "¢" ; set new deliminator | |
} | |
if (strLen(right) > 1) | |
{ | |
string := strReplace(string, right, "¢") | |
right := "¢" |
#if winActive("ahk_class Notepad") | |
or winActive("ahk_class Notepad++") | |
or winActive("ahk_exe sublime_text.exe") | |
~^s::goSub, close_ahk_errors ; ctrl + s (~pass through) | |
#if | |
#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 = {(} |
#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) | |
{ |
+#w::send #{up} ; maximise window | |
+#x::send #{down} ; minimize window | |
+#a::send #{left}{Lwin up} ; snap window left | |
+#d::send #{right}{Lwin up} ; snap window right | |
+#s::send #+{left} ; move window to another monitor | |
+#z::send !{esc} ; cycle through all windows | |
#\::send !{tab}{tab up} ; toggle between this window and the last | |
#z::send #{tab} ; windows 10 task switcher |