General Discussion & Announcements

 View Only

 Accuterm Macro Login

Mike Lankester's profile image
Mike Lankester posted 09-11-2024 06:20

Hi all, 

I have been given the task of allowing users to auto login to a PICK database through Accuterm. I have been given a config ".atsc" file that when double-clicked starts Accuterm and has a tel-net connection ready to be logged into. I have recorded a Macro that allows the user to press Ctrl + F1 which then logs the user in. What needs to happen is when the config file named patmore.atsc is double clicked, the macro runs automatically after Accuterm starts.

Any and all help would be greatly appreciated or if you could point me in the right direction. Haha

Thanks

Mike Lankester

Brian Speirs's profile image
Brian Speirs

Hi Mike,

You would be better asking questions about AccuTerm in the Multi-Value Tools forum.

However, search the AccuTerm help file for "layout",  and then open the topic "Running a script". Within that page, look for "Running a Script from a Layout File".

Essentially, a layout file saves the layout of the open AccuTerm sessions (on the screen), and allows running of a script when the file is opened. Once you have the layout file (it has an extension of "atlp"), you can simply open that file, and it will start AccuTerm and automatically run the script.

Alternatively, you could edit the following layout file to meet your needs:

{"layoutVersion":1,"Windows":[{"Left":-21529,"Top":1967,"Width":9204,"Height":6912,"Maximized":true,"Arrange":0,"Sessions":[{"Profile":"QM-TEST.atsp","Active":true}]}],"Script":"C:\\Progfiles\\Accuterm\\atlogon.atsc"}

I hope that helps.

Brian

John Treankler's profile image
PARTNER John Treankler

Mike, I use the AccuTerm Menu Designer to  add an icon to the AccuTerm Toolbar with an Action like

[Chain "C:\SomeUser\Documents\Accuterm\SomeConnection.atsc"]

so instead of double-clicking the .atsc file the User clicks an icon in the toolbar to log in.

Not as automatic as what you're looking for, but very flexible -- you can add as many icons as you wish -- and can be retried if the login fails.