Ray Posted December 5, 2008 Share Posted December 5, 2008 Need help using special descriptions to identify Control ID.In the help documents, it is shown: A special description can be used as the controlID parameter used in most of the Control...() functions . This description can be used to identify a control by the following properties:ID - The internal control ID. The 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 TEXT - The text on a control, for example "&Next" on a button CLASS - The internal control classname such as "Edit" or "Button" CLASSNN - The ClassnameNN value as used in previous versions of AutoIt, such as "Edit1" REGEXPCLASS - Control classname using a regular expression X \ Y \ W \ H - The position and size of a control. INSTANCE - The 1-based instance when all given properties match. Could someone show me an example on how to format a ControlSend function to use the X \ Y \ W \ H parameters?ie. ControlSend ( "title", "text", "[X:xxx; Y:yyy; W:www; H:hhh]", "String")Any help showing how to use this feature would be greatly appreciated.Thanks Link to comment Share on other sites More sharing options...
FireFox Posted December 5, 2008 Share Posted December 5, 2008 Need help using special descriptions to identify Control ID. In the help documents, it is shown: A special description can be used as the controlID parameter used in most of the Control...() functions . This description can be used to identify a control by the following properties: ID - The internal control ID. The 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 TEXT - The text on a control, for example "&Next" on a button CLASS - The internal control classname such as "Edit" or "Button" CLASSNN - The ClassnameNN value as used in previous versions of AutoIt, such as "Edit1" REGEXPCLASS - Control classname using a regular expression X \ Y \ W \ H - The position and size of a control. INSTANCE - The 1-based instance when all given properties match. Could someone show me an example on how to format a ControlSend function to use the X \ Y \ W \ H parameters? ie. ControlSend ( "title", "text", "[X:xxx; Y:yyy; W:www; H:hhh]", "String") Any help showing how to use this feature would be greatly appreciated. Thanks Hi, blablabla i see you've read sticky...and do some search in forum... Directory Autoit3\Au3info.exe and you can get control ID of window Link to comment Share on other sites More sharing options...
Ray Posted December 5, 2008 Author Share Posted December 5, 2008 (edited) Hi,blablabla i see you've read sticky...and do some search in forum...Directory Autoit3\Au3info.exe and you can get control ID of windowThanks for the fast reply, FireFox.I'm actually needing help understanding how to use the Special Descriptions feature as stated in my original post, not in finding the controlID. I've written scripts using each of the special descriptions shown in the help file and most worked for me but I'm unable to get a working script using the X \ Y \ W \ H description. That's what I need help with.Ray Edited December 5, 2008 by Ray Link to comment Share on other sites More sharing options...
oMBRa Posted December 5, 2008 Share Posted December 5, 2008 try this example: Run('notepad.exe') WinWait('[Class:Notepad]') ControlSend('[Class:Notepad]', '', '[X:0;Y:0]', 'sending some text using the position of the control') ps: I got the pos of the control with Au3info.exe Link to comment Share on other sites More sharing options...
Ray Posted December 5, 2008 Author Share Posted December 5, 2008 try this example: Run('notepad.exe') WinWait('[Class:Notepad]') ControlSend('[Class:Notepad]', '', '[X:0;Y:0]', 'sending some text using the position of the control') ps: I got the pos of the control with Au3info.exe Thank you, oMBra. Your example did work. And, I'm happy to see that it worked without having to use all four position parameters (X, Y, W, and H.) again, thank you. Ray Link to comment Share on other sites More sharing options...
zain Posted February 6, 2011 Share Posted February 6, 2011 Thank you, oMBra.Your example did work. And, I'm happy to see that it worked without having to use all four position parameters (X, Y, W, and H.)again, thank you.RayThanks it helped me. Link to comment Share on other sites More sharing options...
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