Microsoft Navision 3.70 and Macro Scheduler

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
aquarious
Newbie
Posts: 3
Joined: Thu Feb 24, 2011 4:50 am

Microsoft Navision 3.70 and Macro Scheduler

Post by aquarious » Thu Feb 24, 2011 5:00 am

Hi,

I need help, I m new and trying some easy action by Open Macrosoft Navision Database and then Close the Database. I have create exe to be executed at certain time by Window Scheduled Task. This worked when my window is on active mode. If i logout from my window the script does not work.

Following is my script
//Script Begin
//To Run and Open Navision Database
RunProgram>"C:\Program Files\Navision 3.70\Client\fin.exe" database="C:\Program Files\Navision 3.70\Client\database.fdb"

WAIT 3

//To Log out or Close Microsoft Navision Navision
Press ALT
SendText>fx
Release ALT

//Script END

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 24, 2011 9:28 am

When you log out of Windows there is no user console, no input console and windows cease to exist. Therefore when you are logged out of Windows or Windows is locked nothing, not even a macro, can simulate user activity or interact with windows.

In short - you need to make sure you stay logged in for the duration of the macro.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

aquarious
Newbie
Posts: 3
Joined: Thu Feb 24, 2011 4:50 am

Post by aquarious » Thu Feb 24, 2011 11:28 pm

HI mtettmar,

Thank you so much for your reply.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts