I’d like to keep things to a single Project, so here’s what I came up with:
You may have heard me mention AutoIt before to automate Windows tasks, and this is what I ran with.
Once it’s written and working the script can be compiled into an executable and ran with Windows login and startup policies. Easy to deploy, and keeps me down to one FPMI project to manage.
For those interested in the AutoIt script:
[code]; AutoIt script to automate FPMI login without using the Project’s autologin feature
#include <IE.au3>
; Create IE instance to launch project
_IECreate(“http://192.168.140.18:8080/gateway/launchfs/Copy_Of_Line_Data.jnlp”,1,1,1,0)
; Wait for Project window to open. This must match what is in the “Window Title” entry on the Project Management screen in the Gateway.
WinWait(“LineData”)
; Set focus to the project window
WinActivate(“LineData”)
; Wait until project window is active. This is more of a CYA from the above command just in case there’s a bit of delay
WinWaitActive(“LineData”)
; Send Keystrokes for username and password
Send(“user{TAB}{Pause}user{ENTER}”)
[/code]
Hope this can be of help to others.
Regards,