How can I combine two AutoHotkey scripts into one?
-
I want to combine the following two scripts into one: http://superuser.com/questions/86392/how-to-replace-spaces-with-dashes http://superuser.com/questions/86376 How can I do this? Note that whenever I use these AutoHotkey scripts with form input, it presses the Enter key automatically which I don't want.
-
Answer:
Select text, press Alt-R Converts: "My Filename" to "my-filename" "MY FILENAME" to "my-filename" "my filename" to "MY-FILENAME" Preserves original clipboard contents #SingleInstance Force !r:: save := ClipboardAll Send ^c clipwait original_filename := Clipboard StringReplace, hyphen_filename, original_filename, %A_SPACE%, -, All StringLower, hyphen_filename_toggle, hyphen_filename If (hyphen_filename_toggle == hyphen_filename) { StringUpper, hyphen_filename_toggle, hyphen_filename } Clipboard := hyphen_filename_toggle Send ^v Clipboard := save return
metal gear solid at Super User Visit the source
Related Q & A:
- How can I transfer my address book from one Yahoo account to a new one?Best solution by Yahoo! Answers
- How can i transfer the address book from one yahoo account to another?Best solution by Yahoo! Answers
- How can I move my yahoo bookmarks from one yahoo account to another yahoo account?Best solution by Yahoo! Answers
- How can I import all my contacts from one hotmail address to another?Best solution by Yahoo! Answers
- How can I connect two monitors to my laptop?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.