Jump to content

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

What is a window control


  • Please log in to reply
6 replies to this topic
Joefiesta
  • Members
  • 84 posts
  • Last active: Sep 09 2016 02:27 PM
  • Joined: 01 Nov 2010
Can someone tell me where I can find the definition of a window control in Autohotkey?

Also, is a "control" (of a window) different than a "GUI control"?

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts
  • Last active:
  • Joined: 27 May 2007
Window control doesn't ring a bell. A control does, basically everything you see in a window is a control: text, buttons, checkbox, radio button, edit etc look at the control* commands <!-- m -->http://www.autohotke...cs/commands.htm<!-- m -->

Joefiesta
  • Members
  • 84 posts
  • Last active: Sep 09 2016 02:27 PM
  • Joined: 01 Nov 2010
I read ALL the control commands. None of them comes right out and says what a control is. I find that to be a major shortcoming of the documentation. While it is extensive, it fails to provide succinct definitions.

(Sorry, I didn't mean to confuse the issue with "window control". That phrase was just to differentiate "control" from "GUI control".)

Thanks for the reply Hugo

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts
  • Last active:
  • Joined: 27 May 2007
Right click on AutoHotkey icon in your systray and choose Window Spy now hover over a window and its controls you will see what I mean and see what a control as as it will change when you move your mouse around (note it won't work with all programs as some can't be read by AutoHotkey or the windows spy such as Java applications for example)

jaco0646
  • Moderators
  • 3165 posts
  • Last active: Apr 01 2014 01:46 AM
  • Joined: 07 Oct 2006

I read ALL the control commands. None of them comes right out and says what a control is. I find that to be a major shortcoming of the documentation. While it is extensive, it fails to provide succinct definitions.

The Help file is not intended as a dictionary of programming vocabulary. You may notice the acronym "GUI" is never defined under the GUI command either. I think few languages' documentation will explicitly define generic terminology like Boolean, binary, string, subroutine, etc. etc.; otherwise, every language would have enormous, redundant documentation. The term control (also called a widget) is applicable to any language with GUI capability.

tank
  • Administrators
  • 4345 posts
  • AutoHotkey Foundation
  • Last active: Sep 10 2016 10:22 PM
  • Joined: 21 Dec 2007
I used to wonder this as well

i think this is what your asking
what does ClassNN represent
Never lose.
WIN or LEARN.

ZeroAccend
  • Members
  • 1 posts
  • Last active: Dec 30 2015 10:11 PM
  • Joined: 17 Dec 2015

I understand that this is an older post and I'm sorry for necroing, but please note that this page is the first forum response that comes up when you google "AHK what is a control". I'm mentioning this to let you know I'm knowingly necroing with a valid reason. To provide a straightforward answer to others with this same question.

I'm relatively new to AHK and still a novice when it comes to computer programming. I was wondering what a control was myself and couldn't find a definitive answer in the AHK documentation. It wasn't until I read Jaco's response (which I thought was bit brash) that I realized a control wasn't exclusive to AHK and was then able to find a definition.

 

A control is a child window that an application uses in conjunction with another window to enable user interaction. Controls are most often used within dialog boxes, but they can also be used in other windows. Controls within dialog boxes provide the user with a way to type text, choose options, and initiate actions. Controls in other windows provide a variety of services, such as letting the user choose commands, view status, and view and edit text. This documentation describes the controls provided by Windows and the programming elements used to create and manipulate them.

 

 

When you guys read these forum posts, you really need to take into account that some people are brand spanking new to this stuff and we haven't learned the terminology yet. Expecting to find a definition in the AHK documentation isn't farfetched, especially when hyperlinking is so simple. So I sympathize with OP in that aspect and that's why I'm providing my findings.

The TL:DR from how I understand it is:
A control is an element you can interact with.

Links to the definitions I found:

Wikipedia
https://en.wikipedia...ki/Widget_(GUI)

Microsoft.com
https://msdn.microso...3(v=vs.85).aspx