AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need help with a seemingly EASY 1 line hotstring...

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
cazwell220



Joined: 25 Oct 2009
Posts: 2

PostPosted: Sun Oct 25, 2009 7:28 pm    Post subject: Need help with a seemingly EASY 1 line hotstring... Reply with quote

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
View user's profile Send private message Yahoo Messenger
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Sun Oct 25, 2009 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
cazwell220



Joined: 25 Oct 2009
Posts: 2

PostPosted: Sun Oct 25, 2009 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
txquestor



Joined: 22 Aug 2009
Posts: 294

PostPosted: Sun Oct 25, 2009 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Relayer



Joined: 24 Nov 2008
Posts: 68

PostPosted: Sun Oct 25, 2009 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group