Smart questions
Smart answers
Smart people
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 now!
  • 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.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

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.

Computer8822 (Programmer) (OP)
21 Feb 09 9:33
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?
SkipVought (Programmer)
21 Feb 09 15:56


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

Computer8822 (Programmer) (OP)
21 Feb 09 17:28
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
Computer8822 (Programmer) (OP)
25 Feb 09 15:34
Is there anyway to call a session by its name?  Kind of like an appactivate on a child window?  Is this possible?
SkipVought (Programmer)
25 Feb 09 15:38



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

Computer8822 (Programmer) (OP)
25 Feb 09 17:39
Nothing seems to be working.  Can an Infoconnect/Casl Macro screen exchange information with an Extra screen through any type of macro?
SkipVought (Programmer)
25 Feb 09 20:16



Post your code.

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

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

Computer8822 (Programmer) (OP)
25 Feb 09 22:38
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.   
vzachin (TechnicalUser)
26 Feb 09 9:36
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
SkipVought (Programmer)
26 Feb 09 10:34



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

Computer8822 (Programmer) (OP)
26 Feb 09 11:02
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)
SkipVought (Programmer)
26 Feb 09 11:26


FAQ99-4069: How do I use VB(A) to manipulate attachmate (6.5+)?.

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

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

link99sbc (TechnicalUser)
23 Apr 09 14:36
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!

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