Welcome Guest.   Make a donation to an author on the site October 21, 2014, 12:26:47 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE 07/19/05 - IDEA: Capslock reverses case of selected text  (Read 28317 times)
Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« on: July 03, 2005, 09:07:36 PM »

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 » Logged
mouser
First Author
Administrator
*****
Posts: 33,571



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.
Logged
geektechnu
Participant
*
Posts: 16

View Profile Give some DonationCredits to this forum member
« 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!
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: July 17, 2005, 09:11:05 PM »

 smiley 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.


[copy or print]
;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:

[copy or print]
;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
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« 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
Logged
mouser
First Author
Administrator
*****
Posts: 33,571



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: July 20, 2005, 06:17:06 AM »

 smiley 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


[copy or print]
;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
« Last Edit: July 20, 2005, 06:18:58 AM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: July 20, 2005, 07:36:29 AM »

 smiley 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


[copy or print]
;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
« Last Edit: July 20, 2005, 07:43:07 AM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: July 20, 2005, 11:04:21 AM »

 smiley 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
« Last Edit: September 17, 2005, 07:44:58 PM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« 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
Logged
Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« 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
Logged
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: September 08, 2005, 10:13:26 PM »

smiley 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
Logged

skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: September 09, 2005, 04:33:03 AM »

 smiley 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
« Last Edit: September 09, 2005, 04:36:53 AM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Ampa
Charter Member
***
Posts: 589


I am cute ;)

View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: September 09, 2005, 06:26:18 AM »

Yippee! Works now smiley

Sorted my jumbled list for me in no time.

Thanks for the update, Ampa.
Logged
vevola
Charter Member
***
Posts: 88


VeVoLa

View Profile Give some DonationCredits to this forum member
« Reply #14 on: September 17, 2005, 06:45:44 AM »

Just for fun...

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

You could all it random or hacker...

Just a thought!

Cheers!
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: September 17, 2005, 07:48:46 PM »

 smiley 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
« Last Edit: September 17, 2005, 07:50:56 PM by skrommel » Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
glennd
Participant
*
Posts: 1

View Profile Give some DonationCredits to this forum member
« 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.
Logged
AHMalik
Participant
*
Posts: 18


View Profile Give some DonationCredits to this forum member
« 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    Kiss
Logged
AHMalik
Participant
*
Posts: 18


View Profile Give some DonationCredits to this forum member
« 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   
Logged
skrommel
Fastest code in the west
Developer
***
Posts: 882



View Profile WWW Give some DonationCredits to this forum member
« Reply #19 on: April 10, 2007, 12:39:37 PM »

 smiley @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
Logged

Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.
Mandork
Supporting Member
**
Posts: 64


Hopeless or hapless?

View Profile Read user's biography. Give some DonationCredits to this forum member
« 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!).


Logged

Computers are useless. They can only give you answers.
Pablo Picasso
DyNama
Supporting Member
**
Posts: 62


Are you a good witch or a bad witch?

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #21 on: February 08, 2011, 10:40:01 PM »

very clever little utility! smiley to run it under win7, i had to change the compatibility setting to winXP.
Logged
nharding
Member
**
Posts: 36


View Profile Give some DonationCredits to this forum member
« 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
Logged
delwoode
Supporting Member
**
Posts: 142


see users location on a map View Profile Give some DonationCredits to this forum member
« 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! Kiss
Logged
lanux128
Global Moderator
*****
Posts: 6,108



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« 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.donationcoder....orum/index.php?topic=4181
Logged

Pages: [1] 2 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.051s | Server load: 0.08 ]