Wikipedia talk:AutoHotkey
Appearance
Off we go
[edit]Please add your tips, or link to scripts, libraries and tools (you can post them on the AutoHotkey Community Forum, or use a service like Pastebin.com). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:15, 12 January 2017 (UTC)
qx
[edit]I've been using qx as my trigger for AHK commands, often for dumping in chunks of text which I then prune back to the required text. So, for African articles...
::qxafrica::
Send, {{}{{}WikiProject Africa{Return}|class= {Return}|importance= {Return}|attention= yes{Return}
Send, |needs-infobox= yes{Return}|small= yes{Return}<!-- Task forces (North Africa) -->{Return}
Send, |Algeria= yes{Return}|Algeria-importance= {Return}
Send, |Egypt= yes{Return}|Egypt-importance= {Return}
Send, |Libya= yes{Return}|Libya-importance= {Return}
Send, |Madeira= yes{Return}|Madeira-importance= {Return}
Send, |Morocco= yes{Return}|Morocco-importance= {Return}
Send, |Spanish Africa= yes{Return}|Spanish Africa-importance= {Return}
Send, |Sudan= yes{Return}|Sudan-importance= {Return}
Send, |Tunisia= yes{Return}|Tunisia-importance= {Return}
Send, |Western Sahara= yes{Return}|Western Sahara-importance= {Return}
Send, <!-- Task forces (Western Africa) -->{Return}
Send, |Benin= yes{Return}|Benin-importance= {Return}
Send, |Burkina Faso= yes{Return}|Burkina Faso-importance= {Return}
Send, |Cape Verde= yes{Return}|Cape Verde-importance= {Return}
Send, |Gambia= yes{Return}|Gambia-importance={Return}
Send, |Ghana= yes{Return}|Ghana-importance= {Return}
Send, |Guinea= yes{Return}|Guinea-importance= {Return}
Send, |Guinea-Bissau= yes{Return}|Guinea-Bissau-importance= {Return}
Send, |Ivory Coast= yes{Return}|Ivory Coast-importance= {Return}
Send, |Liberia= yes{Return}|Liberia-importance= {Return}
Send, |Mali= yes{Return}|Mali-importance= {Return}
Send, |Mauritania= yes{Return}|Mauritania-importance= {Return}
Send, |Niger= yes{Return}|Niger-importance= {Return}
Send, |Nigeria= yes{Return}|Nigeria-importance= {Return}
Send, |Saint Helena= yes{Return}|Saint Helena-importance= {Return}
Send, |Senegal= yes{Return}|Senegal-importance= {Return}
Send, |Sierra Leone= yes{Return}|Sierra Leone-importance= {Return}
Send, |Togo= yes{Return}|Togo-importance= {Return}
Send, <!-- Task forces (Central Africa) -->{Return}
Send, |Angola= yes{Return}|Angola-importance= {Return}
Send, |Cameroon= yes{Return}|Cameroon-importance= {Return}
Send, |Central African Republic= yes{Return}|Central African Republic-importance= {Return}
Send, |Chad= yes{Return}|Chad-importance= {Return}
Send, |Democratic Republic of the Congo= yes{Return}|Democratic Republic of the Congo-importance= {Return}
Send, |Equatorial Guinea= yes{Return}|Equatorial Guinea-importance= {Return}
Send, |Gabon= yes{Return}|Gabon-importance= {Return}
Send, |Republic of the Congo= yes{Return}|Republic of the Congo-importance= {Return}
Send, |Sao Tome and Principe= yes{Return}|Sao Tome and Principe-importance= {Return}
Send, <!-- Task forces (Eastern Africa) -->{Return}
Send, |Burundi= yes{Return}|Burundi-importance= {Return}
Send, |Comoros= yes{Return}|Comoros-importance= {Return}
Send, |Djibouti= yes{Return}|Djibouti-importance= {Return}
Send, |Eritrea= yes{Return}|Eritrea-importance= {Return}
Send, |Ethiopia= yes{Return}|Ethiopia-importance= {Return}
Send, |French Africa= yes{Return}|French Africa-importance= {Return}
Send, |Kenya= yes{Return}|Kenya-importance= {Return}
Send, |Madagascar= yes{Return}|Madagascar-importance= {Return}
Send, |Malawi= yes{Return}|Malawi-importance= {Return}
Send, |Mauritius= yes{Return}|Mauritius-importance= {Return}
Send, |Mozambique= yes{Return}|Mozambique-importance= {Return}
Send, |Rwanda= yes{Return}|Rwanda-importance= {Return}
Send, |Seychelles= yes{Return}|Seychelles-importance= {Return}
Send, |Somalia= yes{Return}|Somalia-importance= {Return}
Send, |South Sudan= yes{Return}|South Sudan-importance= {Return}
Send, |Tanzania= yes{Return}|Tanzania-importance= {Return}
Send, |Uganda= yes{Return}|Uganda-importance= {Return}
Send, |Zambia= yes{Return}|Zambia-importance= {Return}
Send, |Zimbabwe= yes{Return}|Zimbabwe-importance= {Return}
Send, <!-- Task forces (Southern Africa) -->{Return}
Send, |Botswana= yes{Return}|Botswana-importance= {Return}
Send, |Eswatini= yes{Return}|Eswatini-importance= {Return}
Send, |Lesotho= yes{Return}|Lesotho-importance= {Return}
Send, |Namibia= yes{Return}|Namibia-importance= {Return}
Send, |South Africa= yes{Return}|South Africa-importance= {Return}
Send, <!-- Task forces (African history) -->{Return}
Send, |African diaspora= yes{Return}|African diaspora-importance= {Return}
Send, |African MH= yes{Return}
Send, |Ancient Egypt= yes{Return}|Ancient Egypt-importance= {Return}
Send, |Ancient Near East= yes{Return}|Ancient Near East-importance= {Return}
Send, |Classical MH= yes{Return}
Send, |Early Muslim MH= yes{Return}
Send, |Egyptian religion= yes{Return}|Egyptian religion-importance= {Return}
Send, |Middle Eastern MH= yes{Return}
Send, |Ottoman MH= yes{Return}
Send, |parea= yes{Return}|parea-importance={Return}
Send, {}}{}}{Tab}WP Africa
Return
and for Indian articles
::qxindia::
Send, {{}{{}WikiProject India {Return}
Send, |small= yes{Return}
Send, |pre= yes{Return}
Send, |class= {Return}
Send, |importance= {Return}
Send, |attention= yes{Return}
Send, |orphan= yes{Return}
Send, |needs-infobox= yes{Return}
Send, |auto= yes{Return}
Send, |map-needed= yes{Return}
Send, |image-needed= yes{Return}
Send, |assess-date= {Return}
Send, |reassess= {Return}
Send, |field= {Return}
Send, <!-- Wikiproject Indian states specific tags --> {Return}
Send, |andaman= yes{Return}
Send, |andhra= yes{Return}
Send, |arunachal= yes{Return}
Send, |assam= yes{Return}
Send, |bengal= yes{Return}
Send, |bihar= yes{Return}
Send, |chandigarh= yes{Return}
Send, |chhattisgarh= yes{Return}
Send, |dadra= yes{Return}
Send, |daman= yes{Return}
Send, |delhi= yes{Return}
Send, |goa= yes{Return}
Send, |gujarat= yes{Return}
Send, |haryana= yes{Return}
Send, |himachal= yes{Return}
Send, |jandk= yes{Return}
Send, |jharkhand= yes{Return}
Send, |karnataka= yes{Return}
Send, |kerala= yes{Return}
Send, |laksha= yes{Return}
Send, |madhya= yes{Return}
Send, |maharashtra= yes{Return}
Send, |manipur= yes{Return}
Send, |meghalaya= yes{Return}
Send, |mizoram= yes{Return}
Send, |nagaland= yes{Return}
Send, |orissa= yes{Return}
Send, |puducherry= yes{Return}
Send, |punjab= yes{Return}
Send, |rajasthan= yes{Return}
Send, |sikkim= yes{Return}
Send, |tamilnadu= yes{Return}
Send, |telangana= yes{Return}
Send, |tripura= yes{Return}
Send, |uttar= yes{Return}
Send, |uttarakhand= yes{Return}
Send, <!-- Wikiproject Indian cities specific tags --> {Return}
Send, |chennai= yes{Return}
Send, |mumbai= yes{Return}
Send, |mangalore= yes{Return}
Send, |hyderabad= yes{Return}
Send, <!-- Wikiproject topic specific tags --> {Return}
Send, |cinema= yes{Return}
Send, |education= yes{Return}
Send, |gender= yes{Return}
Send, |geography= yes{Return}
Send, |history= yes{Return}
Send, |literature= yes{Return}
Send, |language= yes{Return}
Send, |music= yes{Return}
Send, |politics= yes{Return}
Send, |protected-areas= yes{Return}
Send, |railways= yes{Return}
Send, |tamil= yes{Return}
Send, |television= yes{Return}
Send, |transport= yes{Return}
Send, {}}{}} {Return}
For permalinks, after selecting the revision ID from the permalink in the address bar,
::qxpl::
Send, [[Special:Permalink/{ctrl down}v{ctrl up}]]
Return
And for wrapping chunks of code,
::qxsyn::<syntaxhighlight lang="html" line start=2>{Return}</syntaxhighlight>
Hope that helps, Cabayi (talk) 09:54, 30 March 2020 (UTC) (that's qxhth)