Sign in to follow this  
Followers 0
willwatters

How to retrieve sent data to a hidden field

12 posts in this topic

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

Share this post


Link to post
Share on other sites



Don't put in (hidden), just TEdit32.


Who else would I be?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

This works for the first field, but not for the rest, whenever I do this. How do I resolve this please?

Edited by willwatters

Share this post


Link to post
Share on other sites

You will have to show me the rest of your code.


Who else would I be?

Share this post


Link to post
Share on other sites

;/* 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

Share this post


Link to post
Share on other sites

What do you recommend?

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

sorry, what is the window's handle? Will you explain what this is please?

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Sorry, but the same window handle/class name appears for both windows. Do you have any other suggestions please?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0