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 mag LaTeX und Python, auch gern in Kombination. Hat Dir dieser Beitrag geholfen und möchtest Du Dich dafür bedanken? Dann unterstütze doch vielleicht die Dingfabrik Köln e.V. mit einem kleinen Beitrag. Details zur Bezahlung findest Du unter Spenden für die Dingfabrik.

More Posts - Website