Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asynchronous messaging?

Status
Not open for further replies.

KalEl76

Programmer
Jul 11, 2003
1
US
I'm in the process of researching ASPECT in order to see if I'm able to help out a partner.

They use Procomm Plus 4.8 to telnet into a QNX machine to access a custom built CRM application. I am assuming they already have scripted to login the user, and launch the CRM app.

The first screen the user sees is the CRM app asking for 3 different types of identification for a customer.

What I want to do is instead of having the user enter in one of those 3 IDs, that whenever the user is on that screen, a script will wait for instructions from another application (which will be written by me and running on the Windows desktop) to tell the script what form of ID it has and what the ID is. So after acquiring that information, the script will fill in the appropriate blank and issue a carriage return to submit.

I'd also like the user to be able to manually enter IDs and then go into other screens within this application. But when they go back to the ID screen, a script will go back to waiting for an ID from my application OR to be manually entered.

If this is possible, can you give me a high level idea of what it would take to accomplish this? Or if there are other ways of doing this that doesn't require ASPECT? If you could redirect me to some documentation, that would be great too.

Thanks...
 
If the screen has either a constant heading at the top, or one of the field has a unique heading that only appears on that screen, then you could use either the waitfor or when target commands to detect that string was present. You would then send the necessary arrow(s) to get to the correct field, then send the information using the transmit command.

As for waiting for the piece of information from another application, there are a couple ways of doing this. One would be to sit in a while 1 loop (an endless loop) waiting for the update to come. When the information becomes available, you could then use the exitwhile command to exit the loop and continue on with the script. If the other application supports DDE, you could use that to transfer the information to Procomm. Your script could then check the variable that is updated via DDE whenever the correct screen is received, then update the field if it has new information or let the user type the information manually.

Hopefully this has answered your question and given you some ideas to work with.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top