Contact US

Log In

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!

*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.

Students Click Here

Running 2 Sessions at same time

Running 2 Sessions at same time

Running 2 Sessions at same time

I'm trying to run multiple sessions of extra when running
a macro, When I open a second session stops the other macro. Is their a vb script or anytype of script that I can edit into the macro file to help let me run more then
run macro ?


RE: Running 2 Sessions at same time

I think that only 1 macro can be running in Attachmate. You can connect to sessions with VB, but I don't know how that would affect the other sessions/macros.


RE: Running 2 Sessions at same time

It is possible to run multiple macros with Attachmate on the same desktop, but is really complicated.  

You must reference your sessions by name. Or pass the session name to the macro. We are using a web interface that calls "<path>\ebrun.exe" "<path>macro.ebm".  And Passes the session name via the command line. (not my magic, I will elaborare when I understand more thorougly)

Any Global variables must not exist in the other macro. It is safest to use all local and pass them back and forth.

The MUCH EASIER solution for us, we set up a Windows Server, then open a Terminal service(TS) session and start the session and macro there. You can run as many macros as you can open sessions.  If you close the session window you can rejoin that same indexed session next time you use TS to connect.  Std licensing only allows for 2 terminal service sessions, but with a Terminal Service license you could do 100's.  Each desktop has its own operating buffer, so there are no variable conflicts, and no need to define a session name to the macro.  I can use the same session file and macro file in all the sessions.  

I hope this is helpful

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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