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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie questions

Status
Not open for further replies.

mp3er3000

Programmer
Feb 19, 2005
17
US
Hi everyone,
I just started learning to program in Extra and i have a few questions.

1. for example my code would be
Sess0.SCREEN.WaitForString "Select Function"
how can i write a statement to say like
if there is a string called"select function" then
sendkey"1"
else
sendkey"2"
end if


2. how do i switch between two sessions?
3. how to write a command to select from row 3 colums 5 to row 9 column 6 and print selections.

Thank you very much!
Kevin
 
I just browse through the forums and found answer for 1 and 2 can anyone help me on part 3 thanks
 
First, welcome to the world of EB programming.

Second, check out the FAQ section as I've answered quite a few questions in there.

Now, to answer your question, or at least try. I don't entirely understand what you're trying to do. It is possible to select the region you've defined, but what selections are you trying to print? Print to where, the screen, Excel, printer? What are you doing with the information once you've got it?

Given a bit more direction we can probably get you moving in the right direction.

calculus
 
I apology for not given enough infomation. The work that i am working on right now is through Attachmate Extra. After it executed the commands it will open a text file and because the text file is few pages long it will scroll across the screen. Out of all the pages there will be one page in the middle that has the word " menu " at the beginning of that one page and end at the end of that page. I want to write a macro that if it sees the word "menu" it will start capture and if it sees the word "end" it will stop capture and then import the captured info onto word or excel. Thank you
 
If I understand the senario correctly, you'll have scrolling text. You may want to investigate the help files under Search. The Search method will allow EB to look at the whole screen to determine where something is. It's a bit harder to work with, but it is very useful as it emulates what a human does in looking at the screen.

calculus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top