willwatters Posted November 11, 2004 Share Posted November 11, 2004 How do I retrieve sent data to a field whch is stated as TEdit32 (hidden) in the class section of the autoit window spy. I have used the following code below, but cannot retrieve the information: send("Tom O'Connor") $AuthorizedPerson = ControlGetText("BAJI/CACI Jury Instruction Selector for Windows [instructions Not Saved]", "", "TEdit32 (hidden)") If $AuthorizedPerson <> "Tom O'Connor" Then MsgBox(48, "Error Found", "Data in the Authorized Person field could not be entered") EndIf Link to comment Share on other sites More sharing options...
this-is-me Posted November 11, 2004 Share Posted November 11, 2004 Don't put in (hidden), just TEdit32. Who else would I be? Link to comment Share on other sites More sharing options...
willwatters Posted November 11, 2004 Author Share Posted November 11, 2004 (edited) This works for the first field, but not for the rest, whenever I do this. How do I resolve this please? Edited November 11, 2004 by willwatters Link to comment Share on other sites More sharing options...
this-is-me Posted November 11, 2004 Share Posted November 11, 2004 You will have to show me the rest of your code. Who else would I be? Link to comment Share on other sites More sharing options...
willwatters Posted November 11, 2004 Author Share Posted November 11, 2004 ;/* Populate Profiles ControlCommand("BAJI/CACI Jury Instruction Selector for Windows [instructions Not Saved]", "", "TPageControl1", "TabRight", "") ;Info "Will Young" is retrieved, but the rest is not (all are hidden fields) send("Will Young") $Agent = ControlGetText("BAJI/CACI Jury Instruction Selector for Windows [instructions Not Saved]", "", "TEdit34") If $Agent <> "Will Young" Then MsgBox(48, "Error Found", "Data in the Agent field could not be entered") EndIf send("{TAB}") send("Lisa Good") $AllegedCoParticipant = ControlGetText("BAJI/CACI Jury Instruction Selector for Windows [instructions Not Saved]", "", "TEdit33") If $AllegedCoParticipant <> "Lisa Good" Then MsgBox(48, "Error Found", "Data in the Alleged Co-Participant field could not be entered") EndIf send("{TAB}") send("Tom O'Connor") $AuthorizedPerson = ControlGetText("BAJI/CACI Jury Instruction Selector for Windows [instructions Not Saved]", "", "TEdit32") If $AuthorizedPerson <> "Tom O'Connor" Then MsgBox(48, "Error Found", "Data in the Authorized Person field could not be entered") EndIf send("{TAB}") send("Joan Terny") $Complainant = ControlGetText("BAJI/CACI Jury Instruction Selector for Windows [instructions Not Saved]", "", "TEdit28") If $Complainant <> "Joan Terny" Then MsgBox(48, "Error Found", "Data in the Complainant field could not be entered") EndIf send("{TAB}") send("Water Solutions") $ContractingParties = ControlGetText("BAJI/CACI Jury Instruction Selector for Windows [instructions Not Saved]", "", "TDateTimePicker1") If $ContractingParties <> "Water Solutions" Then MsgBox(48, "Error Found", "Data in the Contracting Parties field could not be entered") EndIf Link to comment Share on other sites More sharing options...
willwatters Posted November 11, 2004 Author Share Posted November 11, 2004 What do you recommend? Link to comment Share on other sites More sharing options...
this-is-me Posted November 11, 2004 Share Posted November 11, 2004 (edited) Have you tried a msgbox after the lines? example: $AllegedCoParticipant = ControlGetText("BAJI/CACI Jury Instruction Selector for Windows [Instructions Not Saved]", "", "TEdit33") msgbox(0,"",$AllegedCoParticipant) Edited November 11, 2004 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
willwatters Posted November 15, 2004 Author Share Posted November 15, 2004 I tried this, but it doesn't bring back the entered data. It acutally brings back the data that was previoulsy entered that shares the same window title, but of a different screen display (different tab selected). I hope this info helps in resolving this. Thanks. Link to comment Share on other sites More sharing options...
this-is-me Posted November 15, 2004 Share Posted November 15, 2004 You will have to reference the window with it's handle, then. That is the only way to reference two windows with the same title. Who else would I be? Link to comment Share on other sites More sharing options...
willwatters Posted November 24, 2004 Author Share Posted November 24, 2004 sorry, what is the window's handle? Will you explain what this is please? Link to comment Share on other sites More sharing options...
JSThePatriot Posted November 24, 2004 Share Posted November 24, 2004 Check AutoIt Window Spy. It will give you the Window Handle up top under window title I do believe also should be a classname. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
willwatters Posted November 26, 2004 Author Share Posted November 26, 2004 Sorry, but the same window handle/class name appears for both windows. Do you have any other suggestions please? 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