web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Run Macro after launch?

(0) ShareShare
ReportReport
Posted on by 207

I have a situation where I need to disable HRM Solution Series prior to running an integration.  However, the dictionary must be loaded, else I get an error.

Is there any way to automatically disable HRM Solution Series after GP is launched, or through the integration itself?  I have a macro that will do it, so automating that macro gives me a possible route - if that can be done.

Thanks!

*This post is locked for comments

I have the same question (0)
  • KirkLivermont Profile Picture
    5,985 on at

    Hi,

    It is absolutely possible to achieve this but be aware that the GP password will be stored in plain text in the Macro file

    Here is what my batch file to open and automatically login to GP looks like.

    "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.exe" "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.set" "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Login.mac"

    And the macro contents.

    # DEXVERSION=14.00.0072.000 2 2

    CheckActiveWin dictionary 'default'  form Login window Login

     MoveTo field Password

     TypeTo field Password , 'Password1'

     MoveTo field 'OK Button'

     ClickHit field 'OK Button'

    NewActiveWin dictionary 'default'  form sheLL window sheLL

    NewActiveWin dictionary 'default'  form sheLL window sheLL

    # You have chosen to use the sample company, which provides data that you can use to practice procedures or learn more about the product. When you use this sample company, the date is automatically set to April 12, 2017.

    NewActiveWin dictionary 'default'  form DiaLog window DiaLog

     ClickHit field OK

    NewActiveWin dictionary 'default'  form sheLL window sheLL

    NewActiveWin dictionary 'default'  form syReminders window syReminders

    This macro assumes that you are trying to use the last logged in account and as you can see the sa password in my test environment is Password1.

    Best regards,

    Kirk

  • SaintFrag Profile Picture
    207 on at

    Hmm... yeah, I don't want to have the macro handling any of the login stuff.  Just want it to run post-company selection.  I thought a quick link might even be a nice compromise, but that didn't work either.

  • Suggested answer
    KirkLivermont Profile Picture
    5,985 on at

    What version are you on? Running GP 2013 there is a folder called startup on the home page if you place the macro in that folder it should execute after company login like you want.

    Sorry for the delayed response. I didn't know this was possible until I was troubleshooting a user's workstation for slow login times and noticed this.

    Best regards,

    Kirk

  • SaintFrag Profile Picture
    207 on at

    Hmm... I will check out that solution next week.  Sounds promising!

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
HP-11021721-0 Profile Picture

HP-11021721-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans