Soulstriker Posted August 22, 2008 Posted August 22, 2008 Hi all! First of all let me tell you that I am new in this AutoIt world. I've been coding some simple automation programs but I have a problem reading something. In that window I have no way to read the line. I've used the AutoIt Window Info and there's nothing that can distinguish a line from another. What I need to do is that the script wait until the process runned by that program finish (visitng link xxx/xxx ) and then continue doing something else. I've think that i could take a screeshot and compare it with other but i don't have idea how to do that. Any help would be great! Thx a lot in advance and REALLY sory for my ugly english. Soul.
PsaltyDS Posted August 22, 2008 Posted August 22, 2008 Hi all! First of all let me tell you that I am new in this AutoIt world. I've been coding some simple automation programs but I have a problem reading something.In that window I have no way to read the line. I've used the AutoIt Window Info and there's nothing that can distinguish a line from another.What I need to do is that the script wait until the process runned by that program finish (visitng link xxx/xxx ) and then continue doing something else.I've think that i could take a screeshot and compare it with other but i don't have idea how to do that.Any help would be great!Thx a lot in advance and REALLY sory for my ugly english.Soul.AutoIt uses the standard Windows APIs. If a window or its controls are drawn by another program that doesn't use those APIs (like Flash) then AutoIt can't do anything with them. Your first, best indicator is AU3Info.exe, which you said you tried already. Post the results from that (Summary Tab) so we can see what the context is. 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
Soulstriker Posted August 23, 2008 Author Posted August 23, 2008 >>>> Window <<<< Title: Make Me Rich - Robert via FreeCap Class: ThunderRT6FormDC Position: 248, 251 Size: 478, 266 Style: 0x16CA0000 ExStyle: 0x00040100 Handle: 0x001D05DA >>>> Control <<<< Class: ThunderRT6ListBox Instance: 1 ClassnameNN: ThunderRT6ListBox1 Advanced (Class): [CLASS:ThunderRT6ListBox; INSTANCE:1] ID: 22 Text: Position: 0, 64 Size: 473, 134 ControlClick Coords: 225, 61 Style: 0x54210081 ExStyle: 0x00000204 Handle: 0x006C065A >>>> Mouse <<<< Position: 476, 405 Cursor ID: 0 Color: 0xB2B4BF >>>> StatusBar <<<< >>>> Visible Text <<<< 18 17 16 15 14 13 12 11 Exit Stop 10 9 8 7 6 used 5 used 4 used 3 used 2 used 1 used Start >>>> Hidden Text <<<< That's everything. In the entire window the data doesn't change at all. Thx for the reply. Soul
PsaltyDS Posted August 23, 2008 Posted August 23, 2008 Something similar to this should read the ListBox: #include <GuiListBox.au3> Opt("WinTitleMatchMode", 4) If WinExists("[CLASS:ThunderRT6FormDC; TITLE:Make Me Rich]") Then $hWin = WinGetHandle("[CLASS:ThunderRT6FormDC; TITLE:Make Me Rich]") $hLB = ControlGetHandle($hWin, "", "[CLASS:ThunderRT6ListBox; INSTANCE:1]") $iLBCount = _GUICtrlListBox_GetCount($hLB) $sLBList = "ListBox item texts:" & @CRLF For $i = 0 To $iLBCount - 1 $sLBList &= _GUICtrlListBox_GetText($hLB, $i) Next MsgBox(64, "ListBox Data", $sLBList) Else MsgBox(16, "Error", "Window is not present.") EndIf 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
Soulstriker Posted September 1, 2008 Author Posted September 1, 2008 I'm back. I didn't create a new thread because I believed that would be unnesesary. I have the same problem with another window. I've tried using a similar scrpt from the one PsaltyDS posted. But I can't find the right UDF that works. What I need is to read the bottom line, the "status bar", to proceed with the script when the info changes. This is what WindowsInfo tells me. >>>> Window <<<< Title: Checking... via FreeCap Class: ThunderRT6FormDC Position: 456, 233 Size: 286, 232 Style: 0x16C80000 ExStyle: 0x00000108 Handle: 0x00060B9C >>>> Control <<<< Class: ThunderRT6PictureBoxDC Instance: 10 ClassnameNN: ThunderRT6PictureBoxDC10 Advanced (Class): [CLASS:ThunderRT6PictureBoxDC; INSTANCE:10] ID: 14 Text: Position: 0, 0 Size: 280, 180 ControlClick Coords: 49, 168 Style: 0x56010000 ExStyle: 0x00000004 Handle: 0x00080BAA >>>> Mouse <<<< Position: 508, 450 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> Visible Text <<<< Reset Monitor txtHTML >>>> Hidden Text <<<< Thx in advance =) Soul.
PsaltyDS Posted September 1, 2008 Posted September 1, 2008 I'm back. I didn't create a new thread because I believed that would be unnesesary.I have the same problem with another window.I've tried using a similar scrpt from the one PsaltyDS posted. But I can't find the right UDF that works.What I need is to read the bottom line, the "status bar", to proceed with the script when the info changes.This is what WindowsInfo tells me.Thx in advance =)Soul.So, if AutoIt had a command to do that, you find it in the help file under something like... StatusbarGetText()? 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
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