Within Windows 7, I use utilities such as PDFCreator; I would like to locate a keyboard shortcut utility to find all instances of a character (e.g a blank) in a single line dialog form and replace all of these with a different character (e.g. an underscore). Does anyone know if there is a keyboard shortcut or other Windows 7 OS level utility that can do this? I ask about a Windows 7 keyboard shortcut because I need this capability most when I am NOT inside a dedicated application like Word or Excel.

link|improve this question
feedback

2 Answers

A python script seems like the best way of doing something like this without using an application like Word or even Notepad. If you did that you could drop a bunch of files to it and just have it replace all " " spaces that do not occur between two words with "_". If you want something that you can use with just a keystroke(I'm imagining that you want to be able to open something in PDFCreator, see that it needs to be fixed, hit a key combo and it would close PDFCreator, fix the file and reopen PDFCreator), maybe a custom keyboard shortcut like Colibri could automate that for you.

link|improve this answer
thanks for these ideas, jonnyflash. I guess I could have been more clear, to indicate this has to operate on strings in a dialog, not files, so I am thinking now the string has to be highlighted, copied to clipboard, processed there, then pasted back in or something like that. Thanks again. – jglassy Aug 10 '11 at 4:09
feedback

Use AutoHotkey and do it exactly like you said

  1. SendKey Pos1 to jump to the front
  2. Senkey Shift+End to jump to the end of the line and select all
  3. Sendkey CTRL+X to cut everything
  4. Modify the Clipboard with .Replace in Autohotkey
  5. Sendkey CTRL+V to paste the modified string back

You can trigger this script with a global hotkey, should work

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.