Dropdown Box when TextBox is selected?

Get help with using AutoHotkey and its commands and hotkeys
TronVonDoom
Posts: 2
Joined: 20 Mar 2017, 13:04

Dropdown Box when TextBox is selected?

20 Mar 2017, 13:14

Hello everyone! I am pretty new to this, and need a little help with something. I am looking to create a AHK script to where I click on a TextBox and a drop down box appears with a pre-determined set of answers. The text box needs to be identified by its class, which let's say is "Technotes". Whenever I select one of the pre-determined answer, it will auto type that in the textbox.

So, here are my questions.

    1. Is it possible?
    2. I think I start with GUI, then array, then the dropdown box?
    3. Are there currently any known examples that I might have missed?
4GForce
Posts: 553
Joined: 25 Jan 2017, 03:18
GitHub: 4GForce

Re: Dropdown Box when TextBox is selected?

20 Mar 2017, 13:31

1. Yes
2. Sounds like a plan
3. Maybe
Are those TextBoxes in an AHK gui or another program ?
TronVonDoom
Posts: 2
Joined: 20 Mar 2017, 13:04

Re: Dropdown Box when TextBox is selected?

20 Mar 2017, 14:00

It's for a web interface. Can it be used in such a manner?

For example just in case I wasn't clear. On this thread, I click on the quick reply box like I am getting ready to type. Instead of typing, a dropdown menu appears with fixed replies.
4GForce
Posts: 553
Joined: 25 Jan 2017, 03:18
GitHub: 4GForce

Re: Dropdown Box when TextBox is selected?

20 Mar 2017, 14:31

Seems simple enough, I would encourage you to give it a try.
Have a look at the tutorial https://autohotkey.com/docs/Tutorial.htm
Try to get started then post your code with more specific questions.

Maybe a context-sensitive hotkey would be a good place to start ... https://autohotkey.com/docs/Hotkeys.htm#Context

Code: [Select all] [Download] GeSHi © Codebox Plus

#IfWinActive "MyWebInterface"	; replace "MyWebInterface" with proper WinTitle
LButton::
; check selected control
; if its 'Technotes' then show the dropdown
Return

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], ellie59, vtavta, whynotregister and 32 guests