
I would a little script for a simple purpose.
I select a phrase and with a hotkey i am able to put a character before the phrase and other after
Example :
I want to eat
I apply the hotkey control+alt+win+4 and obtain
*I want to eat\
Is it possible ?



Code: (autohotkey)^!#4:: { Send, ^c ClipWait, 5 Clipboard := "*" . Clipboard . "\" } Return

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
^!#4::
{
Send, ^c
ClipWait, 5
Clipboard := "*" . Clipboard . "\"
}
Return



I think is better select the text, hit the hotkey and obtain in his place the converted chain.You won't be able to paste the text back into a web-browser, if you selected something there. (Or at least with some undesired by-effects)




^!#4::
{
Send, ^c
ClipWait, 5
Clipboard := "*" . Clipboard . "\"
ClipWait, 5
Send, ^v
}
Return"this is the text" <Select between quotes, Press ctrl-win-alt-4> -> "*this is the text\" 
Nothing happen in my keyboard.Hm, got something else taking that hotkey? Or does pressing the Win button require to also press another button like <Fn>, on some laptop keyboards?

Original address: https://www.donationcoder.com/forum/index.php?topic=33605.0