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

MACRO Session - Disconnect, Session Connect, Enter Text - MACRONI

MACRO Session - Disconnect, Session Connect, Enter Text - MACRONI

MACRO Session - Disconnect, Session Connect, Enter Text - MACRONI

Hello I consider myself a technical person and have some programming experience, but not with AttachMate and it's been a very long time since I've used Basic.

I use AttachMate Extra and open sessions to view data, enter data, etc. To login to different databases users have to end the session, launch a new one and log back into a different database using a different username/pass. Nothing can be done about having to use the different databases/logins, but I would like to see if there's a way the actual login process can be streamlined. Here's what I want to do:

(with attachmate session open and active)

1. Session > Disconnect
2. Do you want to disconnect session? (box that pops up) Choose Yes.
3. Session > Connect
4. (enter one letter of text) = x
5. <ENTER>
6. (enter text) = USERNAME
7. <TAB>
8. (enter text) = PASSWORD
9. <ENTER>

Can anyone provide me the macro code that would do this? It seems like it should be simple but I've read the help files and they aren't quite as much help as I was hoping. I've used MacroExpress before and writing macros for that was easy because you could go into record mode and anything you clicked or typed automatically wrote the code for the macro. Please let me know if I'm missing something. Thank you!!

RE: MACRO Session - Disconnect, Session Connect, Enter Text - MACRONI

Oh I forgot to mention, I also want to trigger the macro with a hotkey. For example, CTRL + 1 would trigger the macro.

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