http://mohdaoud.blogspot.com/2008/10/auto-login-for-microsoft-dynamics-gp_2192.html
Copy the macro into the C:\Program Files (x86)\Microsoft Dynamics\GP2015\ Folder
Create a Batch file with the following line. Schedule the Batch file to be executed using windows scheduler, or system scheduler
-----------------------------------------------------------------
cd C:\Program Files (x86)\Microsoft Dynamics\GP2015\
"C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.exe" Dynamics.set Loginchecklinks.mac
-----------------------------------------------------------------
Autologin Macro GP2015
-----------------------------
Logging file 'macro.log'
CheckActiveWin dictionary 'default' form Login window Login
MoveTo field 'User ID'
TypeTo field 'User ID' , 'sa'
MoveTo field Password
TypeTo field Password , 'password'
MoveTo field 'OK Button'
ClickHit field 'OK Button'
NewActiveWin dictionary 'default' form 'Switch Company' window 'Switch Company'
ClickHit field '(L) Company Names' item 1 # ''
MoveTo field 'OK Button'
ClickHit field 'OK Button'
CommandExec dictionary 'default' form 'Command_System' command CloseAllWindows
ActivateWindow dictionary 'default' form Toolbar window 'Main_Menu_1'
------------------------------
Check Links Macro
-------------------------------
CheckActiveWin dictionary 'default' form 'SY_Check_Links' window 'Check Links'
NewActiveWin dictionary 'default' form sheLL window sheLL
CommandExec dictionary 'default' form 'Command_System' command 'SY_Check_Links'
ActivateWindow dictionary 'default' form 'SY_Check_Links' window 'Check Links'
ActivateWindow dictionary 'default' form 'SY_Check_Links' window 'Check Links'
MoveTo field 'Insert All Button'
ClickHit field 'Insert All Button'
MoveTo field 'File Series' item 1 # 'Financial'
ClickHit field 'File Series' item 2 # 'Sales'
MoveTo field 'Insert All Button'
ClickHit field 'Insert All Button'
MoveTo field 'File Series' item 2 # 'Sales'
ClickHit field 'File Series' item 3 # 'Purchasing'
MoveTo field 'Insert All Button'
ClickHit field 'Insert All Button'
MoveTo field 'File Series' item 3 # 'Purchasing'
ClickHit field 'File Series' item 4 # 'Inventory'
MoveTo field 'Insert All Button'
ClickHit field 'Insert All Button'
MoveTo field 'File Series' item 4 # 'Inventory'
ClickHit field 'File Series' item 7 # 'System'
MoveTo field 'Insert All Button'
ClickHit field 'Insert All Button'
MoveTo field 'File Series' item 7 # 'System'
ClickHit field 'File Series' item 8 # 'Company'
MoveTo field 'Insert All Button'
ClickHit field 'Insert All Button'
MoveTo field 'File Series' item 8 # 'Company'
CommandExec dictionary 'default' form 'SY_Check_Links' command 'OK Button_w_Check Links_f_SY_Check_Links'
NewActiveWin dictionary 'default' form 'Report_Destination' window 'Report_Destination'
MoveTo field 'OK Button'
ClickHit field 'OK Button'
-------------------------------------------------------
Inventory Reconcile Macro
------------------------------------------------------
NewActiveWin dictionary 'default' form sheLL window sheLL
CommandExec dictionary 'default' form 'Command_Inventory' command 'IV_Reconcile'
ActivateWindow dictionary 'default' form 'IV_Reconcile' window 'IV_Reconcile'
ActivateWindow dictionary 'default' form 'IV_Reconcile' window 'IV_Reconcile'
CommandExec dictionary 'default' form 'IV_Reconcile' command 'Process Button P_w_IV_Reconcile_f_IV_Reconcile'
NewActiveWin dictionary 'default' form 'Report_Destination' window 'Report_Destination'
MoveTo field 'OK Button'
ClickHit field 'OK Button'
NewActiveWin dictionary 'DEX.DIC' form 'Report Destination' window 'Report Type'
MoveTo field '(L) OK'
ClickHit field '(L) OK'
NewActiveWin dictionary 'default' form 'Report_Destination' window 'Report_Destination'
NewActiveWin dictionary 'DEX.DIC' form 'Report Destination' window 'Report Type'
MoveTo field '(L) OK'
ClickHit field '(L) OK'
NewActiveWin dictionary 'default' form 'Report_Destination' window 'Report_Destination'
No comments:
Post a Comment