Vos Posted January 27, 2011 Share Posted January 27, 2011 Hello, i have a project for work i am trying to make easier by automating it. i have only gotten into the very basics with autoIt and wanna know if something is possible before i proceed. i have been told that if you use the autoIt window help finder tool and it highlights the object you are wanting to click or change then it can be done. my problem is that i have a GUI that the finder tool can find the whole box but not the individual data within it. if i wanted to change the individual data how would i go about doing it. i have attached the important information about the whole box below. so i guess all i am really asking is there a way to access inside of a MSFlexGridWndClass? if there is what is the function. i am not asking anyone to write any script for me just point me in the right direction, since i know how mad i get if someone asks me to do any work for free. any pointers would help. thank you in advance Class: ThunderRT6MDIForm Position: -4, -4 Size: 1288, 998 Style: 0x17CF0000 ExStyle: 0x00040100 Handle: 0x000804B2 >>>> Control <<<< Class: MSFlexGridWndClass Instance: 3 ClassnameNN: MSFlexGridWndClass3 Name: Advanced (Class): [CLASS:MSFlexGridWndClass; INSTANCE:3] Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 27, 2011 Share Posted January 27, 2011 Grid controls do not have an external API for AutoIt to use. You can typically blindly Send @TAB and arrow keys to them to move around, but not read the identity or contents of controls. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Bowmore Posted January 27, 2011 Share Posted January 27, 2011 Once you have navigated to the grid cell using the methods suggested by PsaltyDS you can sometimes read the contents of a cell or row with the following code. Send("^c") Sleep(250) Local $Value = ClipGet() MsgBox(0,"Value",$Value) "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook 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