Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

AutoHotkey_L v1.1.04


  • Please log in to reply
47 replies to this topic
fragman
  • Members
  • 1591 posts
  • Last active: Nov 12 2012 08:51 PM
  • Joined: 13 Oct 2009

Changed GuiControl and GuiControlGet to allow a HWND to be passed in the ControlID parameter.

Does this also mean that other parameters that accept gui variables or ClassNNs (such as Gui, ListView) will work with window handles? Or is the implementation specific to these two commands?

Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006
Anything which uses GuiType::FindControl() now supports identifying a control by HWND. This includes GuiControl, GuiControlGet and Gui ListView/TreeView.

Mystiq
  • Members
  • 83 posts
  • Last active: Nov 06 2011 07:07 PM
  • Joined: 08 Jan 2007

Anything which uses GuiType::FindControl() now supports identifying a control by HWND. This includes GuiControl, GuiControlGet and Gui ListView/TreeView.


It might be good idea to change the documentation to include that you can use the HWND directly instead of ClassNN or associated variable. i.e. in help, section "Built-in Functions for ListViews."

If the window has more than one ListView control, by default the functions operate upon the one most recently added. To change this, specify Gui, ListView, ListViewName, where ListViewName is the name of the ListView's associated variable or its ClassNN as shown by Window Spy. Once changed, all existing and future threads will use the indicated ListView


Amazing work as usual. Thanks!