Reputation: 3782
In iOS there's an option in Settings > General > Keyboard called '"." Shortcut'. When enabled, "Double tapping the space bar will insert a period followed by a space" and automatically capitalizes the next letter.
Does anyone know how to go abouts creating an AutoHotKey script to do this, as I find it extremely useful in iOS?
Upvotes: 1
Views: 1318
Reputation: 7953
Ben,
You could try this:
~$Space:: ; trigger on {Space}
if (A_PriorHotkey <> "~$Space" or A_TimeSincePriorHotkey > 250)
Return
SendInput, {BS 2}.{Space}
Input, NextKey, I L1 T10 V B, {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause}
If NextKey and NextKey is lower
SendInput, {BS}+%NextKey%
Return
Upvotes: 2