LIke

This is a paragraph.

IF i select this text then press any keypoard shortcut.

it should be chnage to this

<p>This is a paragraph.</p>

I need auto hot key script and will add more tag. i need a editable script for <p> then i will add for other tag as per requirement.

link|improve this question

45% accept rate
feedback

1 Answer

up vote 1 down vote accepted

You could use a similar approach that I used in your other question, use the clipboard buffer:

!p::
ClipSaved := ClipboardAll
Send ^c
clipwait
Clipboard = <p>%Clipboard%</p>
Send ^v
Clipboard := ClipSaved
ClipSaved=
return

give it a test run for me!

link|improve this answer
great help thanks – metal gear solid Jan 20 '10 at 17:04
feedback

Your Answer

 
or
required, but never shown

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