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!

Activating Open Session - Continuing macro in that session

Status
Not open for further replies.

blckngldhwk

Technical User
Feb 14, 2008
46
US
Okay, I can activate the session I want with AppActivate but I can't get it to continue executing the macro in the other session. Here is what I have...

Code:
Dim Sys As Object, Sess As Object, MyScreen As Object, MyArea As Object, i as Integer, oApp as Object, oWin as Object
        
        Set MyScreen = Sess1.Screen
        
        cert$ = Myscreen.getstring(06,27,09)
        cert = cert$
        
        AppActivate "EDS-MF3 - Extra! X-treme"
        
        Set Sess = System.ActiveSession
        
        Set MyScreen = Sess.Screen
        
        homecheck$ = Myscreen.getstring(16,08,07)
        homecheck = homecheck$
        
        cmdln$ = Myscreen.getstring(23,02,03)
        cmdln = cmdln$
        
        sshom$ = Myscreen.getstring(01,30,07)
        sshom = sshom$
        
        comment$ = Myscreen.getstring(02,43,07)
        comment = comment$
        
        ccs$ = Myscreen.getstring(01,31,04)
        ccs = ccs$
        
        ccswksht$ = Myscreen.getstring(01,28,04)
        ccswksht = ccswksht$

I figure the issue is that I need to declare the active session as the screen I want to pull the info from but I haven't been able to find the right way to do that. Your thoughts? Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top