Attachmate Comparation
Attachmate Comparation
(OP)
Hi!!!
I was able to search for a String named "T628100", but I can not figure out how to make a comparison if it does not find the text.
Example: If you did not find this information, it would look on the bottom line and if it did not find it again press F8
Sorry, I do not speak fluent English and I'm a beginner in programming.
Help me please
I was able to search for a String named "T628100", but I can not figure out how to make a comparison if it does not find the text.
Example: If you did not find this information, it would look on the bottom line and if it did not find it again press F8
CODE --> vba
Set System = CreateObject("EXTRA.System") Set Sessions = System.Sessions Set Sess0 = System.ActiveSession Set MyScreen = Sess0.Screen MyScreen.MoveTo 2, 2 Set MyArea = MyScreen.Search("T628100") MyScreen.MoveTo MyArea.Bottom, MyArea.Right + 1 MyScreen.SendKeys ("<Up>") if ......... MyScreen.SendKeys ("<PF8>") end if
Sorry, I do not speak fluent English and I'm a beginner in programming.
Help me please
RE: Attachmate Comparation
CODE
Skip,
Just traded in my OLD subtlety...
for a NUance!
RE: Attachmate Comparation
Thanks for answering!
That's fine, but I need just one more info: when pressing F8, it should do the search again and if it does not find that it exits the loop
The code above was just an example, follow my true code:
CODE --> VBA
RE: Attachmate Comparation
Wait(500) is like saying, “when I get to a STOP sign, I’ll just wait for exactly 5 seconds and then proceed into the intersection.” That would be silly and dangerous. You might be able to proceed immediately after stoping, or you might need to wait a long time due to traffic on the through street.
You will notice that when you issue a command to the mainframe that the cursor disappears until the mainframe is done, at which time the curor reappears at that screen’s rest coordinates. These coordinates an be different for various screens. DON’T USE WAIT(SomeDuration)
CODE
I’ll have more to say about your question when I get back from church.
Skip,
Just traded in my OLD subtlety...
for a NUance!
RE: Attachmate Comparation
I did some testing and it really is not necessary to wait, even more the way I did.
Ok, thanks
RE: Attachmate Comparation
You say that now, but there WILL be times when the mainframe will not respond “immediately.”
Skip,
Just traded in my OLD subtlety...
for a NUance!
RE: Attachmate Comparation
CODE
Skip,
for a NUance!
RE: Attachmate Comparation
As soon as I test, I'll let you know.
RE: Attachmate Comparation
Skip,
Just traded in my OLD subtlety...
for a NUance!