Skip to content

Instantly share code, notes, and snippets.

@davebrny
davebrny / google_search_show_keyboard.prf.xml
Last active November 28, 2016 10:22
(android, tasker) - show the keyboard input when the Google search app is opened (AutoInput required)
<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>
@davebrny
davebrny / shake_torch.prf.xml
Created December 27, 2016 23:49
(tasker) - shake your phone to toggle the torch
<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>
@davebrny
davebrny / stored_in.ahk
Created December 28, 2016 08:00
(autohotkey) - get the variable stored in a name
stored_in(variable_name) {
stored_in := %variable_name%
return stored_in
}
/*
[script info]
description = get the variable stored in a name
*/
@davebrny
davebrny / between.ahk
Last active January 24, 2017 10:22
(autohotkey) - split between two characters/words/sentences
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 := "¢"
@davebrny
davebrny / close ahk errors.ahk
Last active January 26, 2017 17:54
(autohotkey) - save to close any ahk error windows
#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
@davebrny
davebrny / lightshot enter.ahk
Created January 27, 2017 09:14
(autohotkey) - use the enter key in lightshot to save a screenshot to the last used folder
#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
@davebrny
davebrny / davebrny.ini
Created January 28, 2017 18:09
my key list for long press.ahk - (https://github.com/davebrny/long-press) (autohotkey)
[long press]
1 = {!}
2 = {"}
3 = {U+20AC} ; € euro symbol
4 = {$}
5 = {%}
6 = {^}
7 = {&}
8 = {*}
9 = {(}
@davebrny
davebrny / times tables.md
Created January 6, 2017 00:03
(autohotkey) - 2 to 20 times tables as hotstrings

times tables

example key sequence:   2 t 2 = space

2t2=    --->   4

12t11=    --->   132

@davebrny
davebrny / youtube hotkeys for vlc.ahk
Last active February 12, 2017 21:10
(autohotkey) - vlc hotkeys remapped to match youtube's hotkeys
#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)
{
@davebrny
davebrny / shift windows.ahk
Last active February 12, 2017 22:23
(autohotkey) - window management hotkeys remapped for one handed use
+#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