Jump to content

How to retrieve sent data to a hidden field


Recommended Posts

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 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

Link to post
Share on other sites

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?
Link to post
Share on other sites
  • 2 weeks later...

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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...