12

I want to create an AutoHotKey script that generates this text:

==videoReview
aspnetmvc
IDCODE
TITLE
DESC
10:00
viewable online
[[

]]
3
english
extras::$url=nnn;$reason=

Using a similar tool called Texter, I define it like this:

==videoReview
aspnetmvc
IDCODE
TITLE
DESC
10:00
viewable online
[[
%|
]]
3
english
extras::$url=nnn;$reason=

Very simple.

In AutoHotKey, on the other hand, my script looks messy and is hard to edit, like this:

==videoReview{ENTER}aspnetmvc{ENTER}IDCODE{ENTER}TITLE{ENTER}DESC
{ENTER}10:00{ENTER}viewable{ENTER}online{ENTER}[[{ENTER}{ENTER}
{ENTER}]]{ENTER}3{ENTER}english{ENTER}extras::$url=nnn;
$reason={Up}{Up}{Up}{Up}{Up}

Is there a way to make AutoHotKey scripts more readable than this by allowing for multiline format?

(besides this being a bit unreadable, it says hotstring maximum abbreviation length is 40)

14

Found out here that you can use parentheses for multiline text, this works:

::vidrev::
(
==videoReview
aspnetmvc
IDCODE
TITLE
DESC
10:00
viewable online
[[

]]
3
english
extras`::$url=nnn;$reason=
)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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