Control, ChooseString, not working with Jean's QAP. Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
kunkel321
Posts: 1184
Joined: 30 Nov 2015, 21:19

Control, ChooseString, not working with Jean's QAP.

28 Dec 2022, 12:30

I also posted this on the Quick Access Popup forum, here https://forum.quickaccesspopup.com/showthread.php?tid=1540 but I think Jean must be away. QAP is a tool that is, itself, made in AHK, though it is not 'open code.' I'm trying to automate something by navigating its GUIs. You can see the entire code and screenshots in the last couple of replies at the other forum.

The relevant parts of my script are this:

Code: Select all

WinWaitActive, Add Favorite
Control, TabRight,, SysTabControl321, ahk_class JeanLalonde.ca
Control, ChooseString, z-bottom , ComboBox2, ahk_class JeanLalonde.ca   ; not working
The 'TabRight is working, but ChooseString doesn't seem to. If I understand the AHK help Documentation correctly, I should be able to use ChooseString to select a particular item from QAP's dropdown list (actually a combobox, I guess). There is a menu item that has a name starting with "z-bottom."

Here, I'll post the same screenshot here:
Image

Any idea what I'm doing wrong?
ste(phen|ve) kunkel
User avatar
mikeyww
Posts: 27341
Joined: 09 Sep 2014, 18:38

Re: Control, ChooseString, not working with Jean's QAP.  Topic is solved

28 Dec 2022, 12:39

The string might have invisible characters. I ran the regular release and found that the following worked.

Code: Select all

F3::
Control, ChooseString, Windows, ComboBox2, A
SoundBeep, 1500
Return
User avatar
kunkel321
Posts: 1184
Joined: 30 Nov 2015, 21:19

Re: Control, ChooseString, not working with Jean's QAP.

28 Dec 2022, 14:12

Thank you Mike!

Your example lead me to more experimentation... Apparently a short delay is needed after the TabRight... The following code seems to work.

Code: Select all

		WinWaitActive, Add Favorite
		Control, TabRight,, SysTabControl321, ahk_class JeanLalonde.ca
		sleep, 100
		Control, ChooseString, z-bottom, ComboBox2, A
ste(phen|ve) kunkel

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], JoeWinograd, Spikea and 98 guests