x2ruff4u Posted September 5, 2006 Posted September 5, 2006 ok for some of my stuff when i go to the window of it, it doesnt show the control id with autoit window info, i tryed all dfferent places on the window, it works on note pad but my others it dont, is there another program or somethin or some way to fix this.... thnx in advance!
Moderators SmOke_N Posted September 5, 2006 Moderators Posted September 5, 2006 ok for some of my stuff when i go to the window of it, it doesnt show the control id with autoit window info, i tryed all dfferent places on the window, it works on note pad but my others it dont, is there another program or somethin or some way to fix this....thnx in advance!Are we supposed to look in the crystal ball to see what application you are talking about? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
x2ruff4u Posted September 5, 2006 Author Posted September 5, 2006 (edited) ok for example in my msn window for chating to someone there is no control id and another this window here no control id Edited September 5, 2006 by x2ruff4u
Moderators SmOke_N Posted September 5, 2006 Moderators Posted September 5, 2006 ok for example in my msn window for chating to someone there is no control idControlsOne of the best new features with AutoIt v3 is the ability to work directly with certain types of Window Controls. Almost everything you see on a window is a control of some kind: buttons, listboxes, edit fields, static text are all controls. In fact Notepad is just one big "Edit" control! Because AutoIt works directly with a control they provide a more reliable way to automate than just sending keystrokes. Note: AutoIt only works with standard Microsoft controls - some applications write their own custom controls which may look like a standard MS control but may resist automation. Experiment! Using the AutoIt Window Info Tool you can move your mouse around the window you are interested in and you will be given information of the control that is currently under your mouse. Information on controls is given in a number of ways, these are:Control ID ClassNameNN Text Control Handle (HWND) (Not available in AutoIt Window Info Tool - see below) Whenever you see a Control...() command expecting a ControlID parameter (most of them) you can use any one of these methods. The method you choose will vary by personal preference and the information you are able to retrieve from the AutoIt Window Info Tool. In general, the best method to use is the Control ID, with the other methods being used when a Control ID is not available or is not unique (usually with static text each piece of text actually has the same Control ID so you will need to use one of the other methods to work with those controls). Control IDThe Control ID is the internal numeric identifier that windows gives to each control. It is generally the best method of identifying controls. In addition to the AutoIt Window Info Tool, other applications such as screenreaders for the blind and Microsoft tools/APIs may allow you to get this Control ID. ClassNameNNEach Microsoft standard control has a "classname" such as "button" or "edit". In AutoIt this is combined with the "instance" of that control to give the "ClassNameNN" method. If you have a simple dialog with a few buttons on it they will generally be referred to as "Button1", "Button2", "Button3", etc. This method is useful when the Control ID is not applicable (for static text or custom controls). TextYou will notice that AU3Info gives you the text it can see on a control, for example on a Next button you might see the text &Next - the & indicates that the next letter is underlined and is common when working with menus and controls. You can use this text to identify a control in place of the "ClassNameNN" if you like - however if many controls have the same text you will run into problems. Control Handle (HWND) Using the ControlGetHandle function you can determine the Handle or HWND of a control. A handle is the unique identifier that Windows gives controls. The handle changes each time the control is created. This method of accessing controls is generally only designed for users who are familar with working with handles. Look under the contents for Function Reference \ Window Management \ Controls for a list of the functions that work with controls. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
x2ruff4u Posted September 5, 2006 Author Posted September 5, 2006 so in other words im fu#@ked O.o, cuz it only shows the control id in my tool bar, not going in the window
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now