ListBox - active - How do You know?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Albireo
Posts: 1756
Joined: 16 Oct 2013, 13:53

ListBox - active - How do You know?

24 Jul 2017, 15:06

I have a problem to check if an "ListBox" is Active(visual) or not.

First I can se the "ListBox" it's easy to read with

Code: Select all

ControlGet ListBox, List,,, %ListBox1ID%
When a choice is made, the "ListBox" disappear, and a new window is opened.
Right now I have no idea how to know if the "ListBox" is visual gone.
The ahk_id is the same and I got the same result with the command ControlGet
Any idea to solution?
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: ListBox - active - How do You know?

24 Jul 2017, 15:32

Hi.
1. How about ControlGetFocus?
2. If your listbox has a gLabel, you can combine this with your choice of an entry. Than you even don't need ControlGetFocus
3. If a new window is opened, after disappering, you can search for the window.
4. Maybe I don't have understand.
Einfach nur ein toller Typ. :mrgreen:
Albireo
Posts: 1756
Joined: 16 Oct 2013, 13:53

Re: ListBox - active - How do You know?

24 Jul 2017, 16:17

Yes!
ControlGetFocus, seems to work for me

Thank you!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: inseption86, mikeyww and 442 guests