 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
cazwell220
Joined: 25 Oct 2009 Posts: 2
|
Posted: Sun Oct 25, 2009 7:28 pm Post subject: Need help with a seemingly EASY 1 line hotstring... |
|
|
I need help with something that should be relatively simple for a good coder.
I'm trying to create an extremely simple script that acts much like my blackberry does. On the blackberry when you press the spacebar twice it automatically puts a period at the end of the sentence and capitalizes the next word. I've found it to be very handy and would love this feature on my computer.
I have tried on my own and all I have been able to do is this:
<example code> :: ::{backspace}.{shift down} </example code>
Unfortunately with this command you have to press the spacebar 3 times then all letters are capitalized until you press the shift key again manually.
Is there someway to make this happen? Any ideas?
Thanks in advance! |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Sun Oct 25, 2009 9:40 pm Post subject: |
|
|
This seems to work reasonably well. You may want to fiddle with the timeout value of Input to see what works best. | Code: | :*?: ::
SendInput, . `
SendInput, {Shift Down}
Input, key, L1 V T3
SendInput, {Shift Up}
return |
|
|
| Back to top |
|
 |
cazwell220
Joined: 25 Oct 2009 Posts: 2
|
Posted: Sun Oct 25, 2009 9:45 pm Post subject: |
|
|
| jaco0646 wrote: | This seems to work reasonably well. You may want to fiddle with the timeout value of Input to see what works best. | Code: | :*?: ::
SendInput, . `
SendInput, {Shift Down}
Input, key, L1 V T3
SendInput, {Shift Up}
return |
|
MACARONI!!!
You are the best... tried it out and it works really well!
Such a silly thing, but I have grown to love it on my blackberry.
Thank you very much!! |
|
| Back to top |
|
 |
txquestor
Joined: 22 Aug 2009 Posts: 294
|
Posted: Sun Oct 25, 2009 10:23 pm Post subject: |
|
|
Here is a Rapidhotkey Atlernative.
Rapidhotkey more flexibility in creating special hotkeys
| Code: |
~Space::RapidHotKey("CapsPeriod",2,0.3,1) ; double tap spacebar
CapsPeriod:
SendInput, . `
SendInput, {Shift Down}
Input, key, L1 V T3
SendInput, {Shift Up}
return
#include %A_SCRIPTDIR%\Rapidhotkey.ahk ; or place this script in the Autohotkey.exe LIB folder
|
_________________
"Man's quest for knowledge is an expanding series whose limit is infinity" |
|
| Back to top |
|
 |
Relayer
Joined: 24 Nov 2008 Posts: 68
|
Posted: Sun Oct 25, 2009 10:34 pm Post subject: |
|
|
| Quote: | Rapidhotkey more flexibility in creating special hotkeys
|
Yes, I like RapidHotKey.ahk too and would probably use it if this were a script I was writing.
Back to this example, I prefer to avoid toggling the shift key, or any other key for that matter because if something goes bad, you can be left with a funny keyboard. An alternative is:
| Code: |
:*?: ::
SendInput, . `
Input, key, L1 T3
StringUpper, key, key
SendInput, %key%
return
|
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|