Get text from a list box; use AutoHotKey to grab items from programs

Get text from a list boxSometimes I’d like to be able to, progromatically, extract values listed inside a program.  Unfortunately many programs I use do not allow the ability to get text from a list box.

One of AHKs great strengths is how well it “hooks” into Windows.  I wrote an AutoHotKey script which allows me to copy and paste a list of items selected in the window.  There are lots of options like retrieve all items, only those selected, obtain the count of either previously mentioned.  Once you have all the items you can send instructions back to the list box and specify which one you want selected (thus if you frequently go back and select the same items, it can automate the process.

Get text from a list box

Grabbing Selected Items from SPSS


  1. Do you mind posting the code on how you got this to work?


  2. Sorry, I’ just saw your comment. I’ll track it down and will post it over the weekend.

  3. I’ve added the code as well as re-did the video (the audio was terrible!)

    I hope it helps!

Leave a Reply