DonationCoder.com Software > Coding Snacks
Put In brackets
Contro:
:-*
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 ?
:-[
skwire:
--- Code: Autohotkey ---^!#4::{ Send, ^c ClipWait, 5 Clipboard := "*" . Clipboard . "\"}Return
Contro:
--- Code: Autohotkey ---^!#4::{ Send, ^c ClipWait, 5 Clipboard := "*" . Clipboard . "\"}Return-skwire (January 08, 2013, 11:35 AM)
--- End quote ---
Oh my God!!!!!!!!
Running to try
Best Regards
:-*
Contro:
I come to see....
"this is the text"
"this is the text"
Don't go. What am i doing bad
--- ---#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
:-*
Target:
are you selecting the text before you fire the hotkey, or just entering the text?
if you don't select the text there's nothing to copy so no changes are made...
do you also realise that the 'answer' is in the clipboard? You have to paste it in order to see the change
Navigation
[0] Message Index
[#] Next page
Go to full version