My autohotkey script

Source: Internet
Author: User

N earlierArticle(Http://blog.csdn.net/shell_picker/archive/2010/02/24/5321551.aspx) probably mentioned the autohotkey keyboard Macro Tool, the implementation of the function is probably to extend P to <p> </P> and so on. This article will show you how to write my autohotkey script.

 

Now this autohotkey script is started when I start the first one.Program. I think autohotkey should be a necessary tool for developers, so you can understand how imba autohotkey is.

 

; The first shortcut key: Win + H, which can replace the <> & and other characters in a text segment with HTML entities, making it easy to directly paste them into HTML. <Br/> # H: <br/> send ^ x <br/> strtmp = % clipboard % <br/> stringreplace, strtmp, strtmp ,&,&';, all <br/> stringreplace, strtmp, strtmp, <, <';, all <br/> stringreplace, strtmp, strtmp, >,> ';, all <br/> stringreplace, strtmp, strtmp, % a_space %, '; % a_space %, all <br/> stringreplace, strtmp, strtmp, % a_space %, % a_space % ';, all <br/> clipboard = % strtmp % <br/> send ^ V <br/> return </P> <p> # Ho Tstring endchars 't; defines the trigger key of hotstring: tab. Below are a bunch of hotstrings, which are not explained below. // With autohotkey and Vim's autocomplpop plug-in, textmate is a float cloud. </P> <p>; for HTML <br/>: O: P ::< P> </P> {left 4} <br/>: O: div:: <div> </div> {left 6} <br/>: O: :: <a href = ""> </a> {left 6} <br/>: O: IMG :: {left 4} <br/>: O: H1 :: <p> </p> {left 5} <br/>: O: H2 ::< H2 ></H2 >{left 5} <br/>: O: h3: <p> </p> {left 5} <br/>: O: H4: <H4> </H4> {left 5} <br/>: o: H5: <H5> </H5> {left 5} <br/>: O: H6 :: <H6> </H6> {left 5} <br/>: O: BR ::< br/> <br/>: O: OL :: <ol> </OL> {left 5} <br/>: O: ul: <ul> </Ul> {left 5} <br/>: O: Li: <li> </LI> {left 5} <br/>: O: DL :: <DL> </dl> {left 5} <br/>: O: DT ::< DT> </DT> {left 5} <br/>: O: DD: <DD> </DD> {left 5} <br/>: O: Code: <code> </code> {left 7} <br/>: o: Span ::< span ></SPAN >{left 7 }< br/>: O: Pre :: <PRE> </PRE> {left 6} <br/>: O: B ::< B ></B> {left 4} <br/>: O: strong: <strong> </strong> {left 9} <br/>: O: Q: <q> </q> {left 4} <br/>: o: CITE ::< cite ></CITE >{left 7 }< br/>:o: TD ::< TD ></TD >{left 5} <Br/>: O: TR: <tr> </tr> {left 5} <br/>: O: TH :: <TH> </Th> {left 5} <br/>: O: DEL: <del> </del> {left 6} <br/>: O: INS: <ins> </INS> {left 6} <br/>: O: Table: <Table> </table> {left 8} <br/>: o: tbody ::< tbody> </tbody> {left 8} <br/>: O: caption :: <caption> </caption> {left 10} <br/>: O: style ::< MCE: style type = "text/CSS"> <! -- </P> <p> --> </MCE: style> <style type = "text/CSS" mce_bogus = "1"> </style> {left 8} {enter} {up} {end} {enter} <br/ >: o: Option: <option> </option> {left 9} <br/>: O: input :: <input type = "" name = ""/> {left 12} </P> <p>; for Java <br/>: O :/:: /**/{left 3} <br/>: O: If: <br/>{< br/> sendinput if () {enter }{}< br/> sleep 30 <br/> sendinput {enter }{}}{ up 2 }{ end} {left} <br/>}< br /> return </P> <p>: o: else ::< br/>{< br/> sendinput E LSE {enter }{}< br/> sleep 30 <br/> sendinput {enter }{}}{ up }{ end} {enter }< br/>}< br /> return </P> <p>: o: While: <br/>{< br/> sendinput while () {enter }{}< br/> sleep 30 <br/> sendinput {enter }{}}{ up 2 }{ end} {left} <br/>}< br /> return </P> <p>: o: For: <br/>{< br/> inputbox I, input, which iterator? <Br/> sendinput for (% I % = 0'; % I % <'; + = % I %) {enter }{}< br/> sleep 30 <br/> sendinput {enter }{}}{ up 2 }{ end} {left 6 }< br/>}< br/> return </P> <p>: o: Try :: <br/>{< br/> sendinput try <br/> sleep 30 <br/> sendinput {enter }{{}< br/> sleep 30 <br/> sendinput {enter }{}< br/> sleep 30 <br/> sendinput {enter} catch (exception E) <br/> sleep 30 <br/> sendinput {enter }{{}< br/> sleep 30 <br/> sendinput {enter }{}}< br/> lupus EP 30 <br/> sendinput {enter} finally <br/> sleep 30 <br/> sendinput {enter }{}< br/> sleep 30 <br/> sendinput {enter }{}{ up 7 }< br/> sleep 30 <br/> sendinput {enter }< br/>}< br/> return </P> <p>; for C/C ++ <br/>: O: Main ::< br/>{< br/> sendinput int main (INT argc, char * argv []) {enter }{}{ enter }{}}{ up} {end} <br/> sleep 100 <br/> sendinput {enter} return 0 '; {up} {end} <br/> sleep 30 <br/> sendinput {enter} <br/>}< br/> Return </P> <p>; for XML <br/>: O: XML: <? XML version = "1.0" encoding = "UTF-8"?> <Br/>: O: X/: <+ 1 --> {left 4} <br/>: O: CD :: <+ 1 [CDATA []> {left 3} </P> <p>; for ant <br/>: O: Target :: <br/> {<br/> sendinput <target name = "" depends = "" Description = ""> </Target> {left 9} <br/> sleep 300 <br/> sendinput {enter} {up} {end} {enter} <br/>}< br/> return

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.