My ahk window has an edit control, and a listview.
I have set the window to be always on top, by using this code:
Code: Select all
WinGet, active_id, ID, A
WinSet, AlwaysOnTop, ON, ahk_id %active_id%
The edit control has focus when the gui is first created, if I left click on another window, such as notepad, and then try to type, the listview on my ahk gui has focus. This is actually close to what I want, except I want the edit control to have focus instead of the listview by default.
I tried
I used the vVariable from the edit control as the controlID, then I tried to use the g-label, then I tried to use the hwndHWNDVAR, none worked.
What is the proper controlID?
I also encountered a "paramter #1 is invalid" each time. That is, it's saying the +Default is invalid.