INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

activatesession

activatesession

(OP)
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?

RE: activatesession



Hi,

Check out the Sessions object in HELP.

Skip,
glassesDon't let the Diatribe...
talk you to death!tongue

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: activatesession

(OP)
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

RE: activatesession

(OP)
Is there anyway to call a session by its name?  Kind of like an appactivate on a child window?  Is this possible?

RE: activatesession




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,
glassesDon't let the Diatribe...
talk you to death!tongue

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: activatesession

(OP)
Nothing seems to be working.  Can an Infoconnect/Casl Macro screen exchange information with an Extra screen through any type of macro?

RE: activatesession




Post your code.

Skip,
glassesDon't let the Diatribe...
talk you to death!tongue

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: activatesession

(OP)
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.   

RE: activatesession

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

RE: activatesession




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

Skip,
glassesDon't let the Diatribe...
talk you to death!tongue

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: activatesession

(OP)
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)

RE: activatesession

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)

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close