Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 04, 2015, 09:35:47 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: DONE 07/19/05 - IDEA: Capslock reverses case of selected text  (Read 31693 times)

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
eVER TYPED A LINE OF TEXT, ONLY TO DISCOVER THAT CAPS WAS ON? oH DARN - IT'S ON now!!!

OK so now I want to repair the damage so that you guys don't think I am shouting at you... what choice have I got but to retype the entire line of text?  Well how about if I could simply select the offending characters, hit my Caps Lock key and not only would it turn off CAPS so that I'd not be producing further garbage, but it would also reverse the case of the selection fixing my original problem in a single stroke.

Now I know that some software (eg Word) has a switch case funtion, but why not have this facility system wide?

No more reversed case issues in Messenger or IRC or on forums etc etc...

Just a thought.

Ampa.

PS - Yes I know that I should touch type better and avoid ever making mistakes in the first place, but the fact is that a lot of us do screw up in this manner from time to time.

PPS - I also once tried, but failed, to configure a HotKey program (I think it was HoeKey) so make a small sound when I hit Caps Lock as a warning... perhaps this too could be a feature of this tiny tool?
« Last Edit: July 20, 2005, 04:23:23 PM by mouser »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,012
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Capslock reverses case of selected text
« Reply #1 on: July 04, 2005, 02:35:27 AM »
some of the clipboard tools have easy hotkeys that will take text on clipboard and fix case.
ill bet one of the autoit coders here can make a compiled autoit macro script that will copy selected text to clipboard, change case, and paste it back.

as for caps lock sounds - thats a nice idea.. i know there are some utils for making click sounds when you type - perhaps some of these can be configured to only make certain sounds for certain keys.

if not, its actually a REALLY fun idea for a coding snack to make a keyboard map and let you define different sounds for each key - for example make a mapping that speaks the letter of each key you press, or makes slightly different click sounds for easily mistyped keys so that you could eventually learn to identify typos based on sound feedback.  very interesting idea.

im interested to hear if anyone knows of tools to assign custom sounds to dif. keys.

geektechnu

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 16
    • View Profile
    • Donate to Member
Re: IDEA: Capslock reverses case of selected text
« Reply #2 on: July 05, 2005, 06:21:19 AM »
Quote
... make a keyboard map and let you define different sounds for each key...
Map the keyboard to a selectable MIDI instrument and turn the keyboard into a drum machine (or any other instrument you choose).

That's something I'd like to see!

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
DONEISH: Capslock reverses case of selected text
« Reply #3 on: July 17, 2005, 09:11:05 PM »
 :) Here's a brute force solution to the caps lock problem: Play a sound while caps lock is down.

Download and install AutoHotKey from www.autohotkey.com. Save the script as CapsSound.ahk and doubleclick to run.


Code: [Select]
;CapsSound
;Plays a sound while caps lock is down

~Capslock::
START:
GetKeyState,capslock,CapsLock,T
If capslock=U
  Return
SoundPlay,%SYSTEMROOT%\Media\ding.wav,Wait
Goto,START


Another, more gentle version only plays a sound once when the caps lock is turned on:

Code: [Select]
;CapsSoundOnce
;Plays a sound when caps lock is turned on

~Capslock::
GetKeyState,capslock,CapsLock,T
If capslock=D
  SoundPlay,%SYSTEMROOT%\Media\ding.wav,Wait
Return
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
Re: IDEA: Capslock reverses case of selected text
« Reply #4 on: July 19, 2005, 11:49:30 AM »
Thanks skrommel for the AutoHotkey scripts... Shall try out the gentler version this evening.

As for my original question (reversal of accidental Caps Locked text) I am currently trying out As-U-Type by Fanix Software.  This is an advanced OS level real-time spell checker and text expander, which also has the accidental Caps Lock tool in built.

So far am very impressed by the utility, but the trial is only 30 days (?) and then registration is a tad expensive at $49.95 !!

Ampa

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 35,012
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Donate to Member
Re: IDEA: Capslock reverses case of selected text
« Reply #5 on: July 19, 2005, 01:24:18 PM »
this doesn't directly address your issue ampa, but, while i think as-u-type is a very cool idea, i am just about done with my clipboard help+spell tool, whose purpose is to let you quickly spellcheck highlighed/selected text in any application, or do some quick fixes to it (change from uppercase to normal case for example).

maybe it will serve your needs.  it should be a little more flexible than as-u-type, and less of a cpu drain, but it will mean that you have to manually select the text to fix and hit the hotkey, rather than have it auto mark spelling errors in the original dialogs as you are typing.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Capslock reverses case of selected text
« Reply #6 on: July 20, 2005, 06:17:06 AM »
 :) And another solution, stolen more or less from the AutoHotkey help file.

CapShift turns the Caps Lock into a Left Shift.

Download and install AutoHotKey from www.autohotkey.com. Save the script as CapShift.ahk and doubleclick to run.

Skrommel


Code: [Select]
;CapShift.ahk
;Turn Caps Lock into a Left Shift.

*CapsLock::
Send,{Lshift Down}
Loop
{
  Sleep, 10
  GetKeyState, state, CapsLock, P
  If state = U
    Break
}
Send,{LShift Up}
Return
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
« Last Edit: July 20, 2005, 06:18:58 AM by skrommel »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
DONE: Capslock reverses case of selected text
« Reply #7 on: July 20, 2005, 07:36:29 AM »
 :) I still think prevention is better than curing, but here's what you asked for.

CapsChangeCase changes capslocked sTRINGS into corret Strings when caps lock is pressed.

To use select some text and press caps lock.

Download and install AutoHotKey from www.autohotkey.com. Save the script as CapChangeCase.ahk and doubleclick to run.

Skrommel


Code: [Select]
;CapsChangeCase.ahk
;Changes capslocked sTRINGS into corret Strings when caps lock is pressed
;Skrommel @2005

CapsLock::
AutoTrim,Off
StringCaseSense,On
Clipboard=
Send,^x
ClipWait,1

lower=abcdefghijklmnopqrstuvwxyzæøå
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ

string=%Clipboard%
StringLen,length,string
Loop,%length%
{
  StringLeft,char,string,1
  StringGetPos,pos,lower,%char%
  pos+=1
  If pos<>0
    StringMid,char,upper,%pos%,1
  Else
  {   
    StringGetPos,pos,upper,%char%
    pos+=1
    If pos<>0
      StringMid,char,lower,%pos%,1
  }
  StringTrimLeft,string,string,1
  string=%string%%char%
}
clipboard=
clipboard=%string%
ClipWait,1
Send,^v
SoundPlay,%SYSTEMROOT%\Media\ding.wav,Wait
Exit
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
« Last Edit: July 20, 2005, 07:43:07 AM by skrommel »

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
DONE: Capslock reverses case of selected text
« Reply #8 on: July 20, 2005, 11:04:21 AM »
 :) And finally the ultimate verison!

CAPshift extends the Caps Lock key by slowing it down, and shows a menu to change the selected text to lowercase, UPPERCASE, TitleCase, iNVERTEDcASE, RaNDoMCaSE or to Replace user defined chars.

Features:
- Right where you expect to find it.
- Hold down for 0.5 sec to enable/disable.
- Hold down for 1 sec to show the menu.
- Rightclick the tray icon to show the menu.
- Also slows down F1, Insert, NumLock and ScrollLock.



You'll find the downloads and more info at Skrommel Software.

Edit: Updated to v1.1: Added the same menu to the tray icon.

Edit: Updated to v1.2: Added a countdown tooltip, also slows down F1, Insert, NumLock and ScrollLock. Added tray status.

Edit: Updated to v1.3: Added an ini-file to disable status, slowed down cutting to make it work in explorers.

Edit: Updated to v1.4: Added Random case, added option to replace user defines chars.

Skrommel
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
« Last Edit: September 17, 2005, 07:44:58 PM by skrommel »

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
Re: IDEA: Capslock reverses case of selected text
« Reply #9 on: July 20, 2005, 12:20:05 PM »
OK now I am impressed.  This last script does indeed seem to be an ideal solution.

But it is not only the fact that you provided a solution, but that you thought the problem through and made a better product than I originally requested.

Ampa

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #10 on: September 08, 2005, 12:33:24 PM »
Hmm... Tried this out today as I had the perfect job for the tool (so to speak)... A list of addresses, some of which were in CAPS, some lower and some mixed.

But - unless I am using the tool incorrectly, it didn't function... Or at least certain options didn't work.

TeStInG  <- here is my test word (copied to each line below - then processed by CAPshift v1.2)
TeStInG <- upper case - FAILS
TeStInG <- lower case - FAILS
TeStInG <- title case - FAILS
tEsTiNg <- invert case - WORKS!

In each failure, it appears that the paste is taking place, but the pasted text has not been altered.

Perhaps this is a conflict with something else running on my system? Or specific to Opera (the application in which I am typing)?

Will report back with any discoveries!

Ampa

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,219
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: DONE: Capslock reverses case of selected text
« Reply #11 on: September 08, 2005, 10:13:26 PM »
:) And finally the ultimate verison!
CAPshift slows down and extends the caps lock key.

hi there skrommel,

sorry to bother you  but i have a small request. can you modify CAPshift to detect when a game or movie is being played in full-screen mode, then CAPshift will disable itself. this is because when playing games, i accidentally press 'Caps Lock' instead of 'Tab' then CAPshift menu appears and whole game goes bust... ;-(

and then after we're done, we can activate it later. what do you think, is this possible...?
anyway, thanks in advance...

best regards,
lanux

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #12 on: September 09, 2005, 04:33:03 AM »
 :) Now try CAPshift v1.3!

- 2005.09.09: Updated to v1.3: Added an ini-file to disable status, slowed down cutting to make it work in explorers.

Thank's Ampa and lanux128.

You'll find the downloads and more info at Skrommel Software.

Skrommel
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
« Last Edit: September 09, 2005, 04:36:53 AM by skrommel »

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #13 on: September 09, 2005, 06:26:18 AM »
Yippee! Works now :)

Sorted my jumbled list for me in no time.

Thanks for the update, Ampa.

vevola

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 88
  • VeVoLa
    • View Profile
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #14 on: September 17, 2005, 06:45:44 AM »
Just for fun...

Why not add a RaNDoM TeXt feature?  ;) (could simply be vowels in lower case consonants in upper...)

You could all it random or hacker...

Just a thought!

Cheers!

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #15 on: September 17, 2005, 07:48:46 PM »
 :) Just updated CAPshft to v1.4: Added Random case, added option to replace user defines chars.

Now you can add your own characters to replace in the ini-file, like removing empty lines or removing double spaces.

Remove you old CAPshift.ini, or place the new version in another directory.

You'll find the downloads and more info at Skrommel Software.


Skrommel
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
« Last Edit: September 17, 2005, 07:50:56 PM by skrommel »

glennd

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
NEW IDEA: Have a sentence case choice
« Reply #16 on: November 30, 2005, 11:57:28 AM »
I think one of the most useful features would be to change text to sentence case. That way you could get a normal looking sentence regardless of whether the original text were all caps, all lower, reversed, inconsistent/random, etc. Whereas, right now you could only get sentence case if someone were typing with the cap locks on and was using the shift key and you applied the reverse function on it. What if you wanted to transform a paragraph that someone shouted at you to pass on to someone else?

I know this is a tad more tricky than a couple of the other alterations (you have to take into account words like proper nouns - that's probably the most tricky part), but I would think this would be the most useful function IMHO. I think Eudora (maybe not) has that and I used it a bit and thought it came in handy.

Just a thought.

AHMalik

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 18
    • View Profile
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #17 on: April 02, 2007, 03:21:12 PM »
New Idea:
The most trouble-some for typing/Thpists is the "Insert" Key.
If pressed accidently you too much Work efore you feel the problem [specially "Touch-Typists".
In contrary to "CAPS LOCK", it has no Indication on KeyBd.
I hope some-one will try to accept this Challange    :-*

AHMalik

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 18
    • View Profile
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #18 on: April 02, 2007, 03:26:40 PM »
Sorry for spelling & typing mistakes:

New Idea:
The most trouble-some for typing/Thpists is the "Insert" Key.
If pressed accidently by you too much Work had already lost before you feel the problem [specially "Touch-Typists".
In contrary to "CAPS LOCK", it has no Indication on KeyBd.
I hope some-one will try to accept this Challange   

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #19 on: April 10, 2007, 12:39:37 PM »
 :) @AHMalik: CapsLock v1.6 also slows down F1, Insert, NumLock and ScrollLock.

@glennd: A proper sentence case is not on my schedule, but if anyone collected the nouns... A simple sentence case is doable, though, just check for a periods.

Skrommel
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.

Mandork

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 64
  • Hopeless or hapless?
    • View Profile
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #20 on: July 23, 2007, 03:58:00 PM »
This is a pretty nifty little utility and it has been useful.  But is it possible to change the delay time, so that if I actually want to use the caps lock for a short time I can hit it quickly and it will function as normal, but if I want to use the change case function I can hold it down for longer?  I messed around with the settings file and managed to mess it up completely (when I highlighted some text and then invoked CapShift from the tray icon, it just pasted in whatever was on the clipboard!).


Computers are useless. They can only give you answers.
Pablo Picasso

DyNama

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 69
  • Are you a good witch or a bad witch?
    • View Profile
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #21 on: February 08, 2011, 10:40:01 PM »
very clever little utility! :) to run it under win7, i had to change the compatibility setting to winXP.

nharding

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 36
    • View Profile
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #22 on: February 10, 2011, 12:41:50 PM »
What would be useful would be to autocorrect shifted characters where one hand or the other is shifted to left or right, I've done that too many times to count. Although that would probably be better as a different program.

Neil

delwoode

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 142
    • View Profile
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #23 on: April 06, 2011, 03:43:50 AM »
a related issue is the dreaded numlock.   I tried out a calculator program and somehow it set numlock to on and left it like that.  I use a laptop and so there is no light showing to warn you. I couldnt get it back to normal and some of my keys were messed up. I eventually found I had to press the FN key and the numlock key together.   
A script that alerts me when numlock is on and gives me the option to turn it off would be great! :-*

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,219
    • View Profile
    • Coding Snacks by Lanux128
    • Donate to Member
Re: DONE 07/19/05 - IDEA: Capslock reverses case of selected text
« Reply #24 on: April 06, 2011, 08:08:32 AM »
@delwoode: this script by jgpaiva might be helpful.

Quote
KeyInfo - Shows the state of the keyboard keys (caps, num and scroll lock) in the systray

http://www.donationc...index.php?topic=4181