goverdhan123 Posted January 29, 2007 Share Posted January 29, 2007 How AutoIt3 idtentifies the objects in the GUI Example Lets say I have an application consisting of text boxes/buttons/checkboxes/radiobuttons How to automate the application so that I set/get thevalues from all the controls present in the application? Is there any way that autoIT identifies the controls other that mouse movements. Link to comment Share on other sites More sharing options...
CoePSX Posted January 29, 2007 Share Posted January 29, 2007 Use the AutoIt Window Info Tool. Then based on the information you get about the window controls, like classname and id, use the Control_____ functions to deal with them. Check the help file on the Windows functions part. [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font] Link to comment Share on other sites More sharing options...
goverdhan123 Posted January 29, 2007 Author Share Posted January 29, 2007 Use the AutoIt Window Info Tool.Then based on the information you get about the window controls, like classname and id, use the Control_____ functions to deal with them.Check the help file on the Windows functions part.Thanks for the reply, I was trying to locate for the info what you are mentioning but not able to suceed.could you please elobrate more on this by giving an sample example for the existing UI Link to comment Share on other sites More sharing options...
dabus Posted January 29, 2007 Share Posted January 29, 2007 Look at the helpfile for controlsend. Run notepad and Au3Info. Move the mouse above the input-control. See that Au3Info reports >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 0 Y: 0 W: 641 H: 204 Control ID: 15 ClassNameNN: Edit1 Text: Style: 0x50200104 ExStyle: 0x00000200 Now run the demo from controlsend > got it, it's Edit1 again. Link to comment Share on other sites More sharing options...
goverdhan123 Posted January 30, 2007 Author Share Posted January 30, 2007 Look at the helpfile for controlsend.Run notepad and Au3Info. Move the mouse above the input-control. See that Au3Info reports>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<Size: X: 0 Y: 0 W: 641 H: 204Control ID: 15ClassNameNN: Edit1Text: Style: 0x50200104ExStyle: 0x00000200Now run the demo from controlsend > got it, it's Edit1 again. How to set the test in the text box whose Conrol Id : 5946712ClassNameNN : Edit2This text box is present under a group whose details areConrol Id : 12345ClassNameNN : XYZ _GroupText : FacilityAll the above controls are present in the window whose details are Title : ClassNameNN : SWT_Window() Link to comment Share on other sites More sharing options...
goverdhan123 Posted January 30, 2007 Author Share Posted January 30, 2007 How to set the test in the text box whose Conrol Id : 5946712ClassNameNN : Edit2This text box is present under a group whose details areConrol Id : 12345ClassNameNN : XYZ _GroupText : FacilityAll the above controls are present in the window whose details are Title : ClassNameNN : SWT_Window()1. How to execute Multiple scripts using one file2. How to Log the results of the scripts, I mean Pass/Fail information3. How to verify the Live Video is playing 4. How to verify the Playback video is playing Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 30, 2007 Moderators Share Posted January 30, 2007 (edited) 1. How to execute Multiple scripts using one file2. How to Log the results of the scripts, I mean Pass/Fail information3. How to verify the Live Video is playing 4. How to verify the Playback video is playingAre those questions or are you showing us a plan you have? Edited January 30, 2007 by SmOke_N 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. Link to comment Share on other sites More sharing options...
goverdhan123 Posted January 30, 2007 Author Share Posted January 30, 2007 Are those questions or are you showing us a plan you have?Those are questions , I am expecting some answers thanks Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 30, 2007 Moderators Share Posted January 30, 2007 Those are questions , I am expecting some answers thanksI'm sure you worded that wrong... you shouldn't expect anything that you aren't paying for.I'd try to help however... but I don't understand your "questions", maybe you should give an example along with them (especially something you've tried to code). 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. Link to comment Share on other sites More sharing options...
/dev/null Posted January 30, 2007 Share Posted January 30, 2007 1. How to execute Multiple scripts using one file2. How to Log the results of the scripts, I mean Pass/Fail information3. How to verify the Live Video is playing 4. How to verify the Playback video is playingfollowing the thread, where did you pull out the video stuff all of a sudden? That's something completely different from what you were asking.... __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
goverdhan123 Posted January 30, 2007 Author Share Posted January 30, 2007 I'm sure you worded that wrong... you shouldn't expect anything that you aren't paying for.I'd try to help however... but I don't understand your "questions", maybe you should give an example along with them (especially something you've tried to code).1. How to Log the results of the scripts, I mean Pass/Fail informationHere I want to create a Output Log file which will explain the sucessful execution of the statementsEx: Let say I am expecting some string "xyz" from a Text box. I will be validating the string and I should able to log the result as Pass/ Fail.2. Is there any way to test Live Video is playing 3. Is there any way to test Playback video is playing 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