I am wanting to have a macro that will input information provided by the user into an IBM Reflection Session screen. I want the macro to loop until it gets to the end of the current list and then end the macro so that the user can complete their task. The problem that I am having is that either the macro will loop indefinetly or it gets caught on the .WaitForEvent line, i'm guessing because the .MoveCursor command isn't executing correctly. So if anyone can help with checking on a string value at a specific point in Reflection, it will be greatly appreciated.
With Session
Dim GroupBranch As String
Dim MousePos As String
GroupBranch = ""
GroupBranch = .GetPassword("GPBR # ===>", "", "", "")
MousePos = ""
Do While MousePos <> ""
.MoveCursor 10, 8
.WaitForEvent rcEnterPos, "30", "0", 10, 8
.TransmitANSI GroupBranch
.TransmitTerminalKey rcIBMTabKey
.TransmitANSI GroupBranch
.TransmitTerminalKey rcIBMPageDownKey
If MousePos = "" Then Exit Do
Loop
I know that there are parts missing. I intentionally left them out because I could not get them to work, nor could I figure out which specific setup to go with. So if you could just add what it is that you think would work that would be helpful.
Thanks
Travis
With Session
Dim GroupBranch As String
Dim MousePos As String
GroupBranch = ""
GroupBranch = .GetPassword("GPBR # ===>", "", "", "")
MousePos = ""
Do While MousePos <> ""
.MoveCursor 10, 8
.WaitForEvent rcEnterPos, "30", "0", 10, 8
.TransmitANSI GroupBranch
.TransmitTerminalKey rcIBMTabKey
.TransmitANSI GroupBranch
.TransmitTerminalKey rcIBMPageDownKey
If MousePos = "" Then Exit Do
Loop
I know that there are parts missing. I intentionally left them out because I could not get them to work, nor could I figure out which specific setup to go with. So if you could just add what it is that you think would work that would be helpful.
Thanks
Travis