I want to start Reports or/and Dataports automatically. Does anybody know, how I can reach this? And what about starting the whole database incl. Login by a script or anything else?
I use the freeware AUTOIT with a simple script, very similar to the vb script by PrebenRasmussen; it simulates the keys you press when opening the Attain interface and run the report.
If you are interested I can send the script to you
Comments
You can try a trial version for 15 days.
Regards
Torben
wshShell.Run "fin.exe",1,false
WScript.Sleep(1000)
wshShell.SendKeys "{F12}"
wshShell.SendKeys "username"
wshShell.SendKeys "{ENTER}"
wshShell.SendKeys "password"
wshShell.SendKeys "{ENTER}"
wshShell.SendKeys "{ENTER}"
But as you see, the pasword is exposed if you do not use Windows login.
If you are interested I can send the script to you
Thanks
The site:
http://www.hiddensoft.com/AutoIt/index.html
The script I've made is something like:
; Runs Navision client
Run, C:\\Program Files\\Navision Financials\\fin.exe servername=YOURSERVER\, nettype=tcp\, company=YOURCOMPANY
WinWait, Login
WinActivate, Login
Send, USERNAME{TAB}
Send, PASSWORD
LeftClick, 50, 100
; Pounts to 'Contact Management'
Send, !C
that's it.
Andrea