Jump to a Specific Session from a Macro
PASSPORT PC to Host, PASSPORT Web to Host
TN3270, TN5250, VT, SCO ANSI, Wyse 60
I am using a macro to move data from one session to another. I need to be able to switch to a specific session when there are more than two sessions opened in PASSPORT. How can this be done?
There are host key values such as JumpA, JumpB, etc. that you can use with the SendKeys method to accomplish this. Below is an example of a macro that will jump from session A to D:
Sub Main()
Dim Sys, Sess, MyScreen, MyArea
Set Sys = CreateObject("PASSPORT.System")
' Assumes an open session
Set Sess = Sys.ActiveSession
Set MyScreen = Sess.Screen
MsgBox "Press OK to jump to session D"
MyScreen.SendKeys "<JumpD>"
End Sub
For a complete list of host keys descriptions, please visit our online documentation under the keyboard topic. For example, click here to see the list of the 3270 host keys values and description.
switch, specific, session, sessions, jump