Creating Autohotkey dropdown menus to select a LaTeX itemize list

Today I struggled to create a dropdown that would work in all Windows editors and would allow me to select a certain element from a dropdown list and insert this into the current (TeXworks) document. After googling for hours I have come up with the following:


Gui, 1:Destroy
Gui, Add, Text,, Please define the environment:
Gui, Add, DDL, vList, itemize||enumerate|description
Gui, Add, Button, Default, Input
Gui, Show

Gui, Submit, NoHide
Gui, 1:Destroy
Send %List%

What does it do? It creates a dropdown with three items and (after the selection) inserts this value into the last document. I want to use this mechanism to further automate my TeXing process.


Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website