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

activatesession

Status
Not open for further replies.

Computer8822

Programmer
Aug 7, 2008
20
0
0
How can I activate another session and send/get text to/from it?

Or can you tell me if there is a similar post with the answer to it?
 


Hi,

Check out the Sessions object in HELP.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
I can use this to activate the other session...

activatesession sessno("ABBS")

but how to I get the macro to print in that session or putstring?

Or can I make activatesession sessno("ABBS") some sort of object and do one of those...

Session.Screen.Putstring string

or

Session.Screen.Print at 2,3; string
 
Is there anyway to call a session by its name? Kind of like an appactivate on a child window? Is this possible?
 



If you check the Session Object in Help, you will see all the properties.

I would loop thru the sessions and display the property of interest in a msgbox.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Nothing seems to be working. Can an Infoconnect/Casl Macro screen exchange information with an Extra screen through any type of macro?
 



Post your code.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Sub Main ()
Dim ses1 As Object, ses2 As Object, Sys As Object
Set Sys = CreateObject("EXTRA.System")
Set ses1 = GetObject("c:\directory\file.nam")
Set ses2 = GetObject("c:\directory\otherfile.nam")
Sys.ses1.GetString(1,1,12)
End Sub


I do not seem to get any errors until the line before the end sub. I am confused on Setting objects and Systems and so on.
 
hi magic4y2k,

use the macro recorder and you will see how the sessions are aligned and named

this is the method i used when i first started writing code

zach
 



You cannot GetString from a Session. Rather a Screen object.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Would I put:

ses1.Screen.GetString(1,1,12)

Where does it store the string?

Can I do someting like:

strWords = ses1.Screen.GetString(1,1,12)

Or do I have to use PutString right after I use GetString?

Would this work?

ses1.Screen.GetString(1,1,12)
ses2.Screen.PutString(2,9)
 


faq99-4069.

Skip,
[sup][glasses]Don't let the Diatribe...
talk you to death![tongue][/sup][sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
You can use Jumpnext or Appactivate to move between sessions

Set Sys = CreateObject("EXTRA.System")
Sys.Sessions.JumpNext (for each open session)


AppActivate "SessionName" (as it appears at the top)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top