AutoIt - AutoIt
; Open Named Local Model
Run("C:\Program Files (x86)\CA\Plex\6.1\Plex.exe C:\MyLocal.mdl")
; Wait 10 seconds for the CA Plex IDE window to appear.
Local $hWnd = WinWait("MyLocal - CA Plex", "", 10)
; Activate the CA Plex IDE window using the handle returned by WinWait.
WinActivate($hWnd)
; Login Dialog (CTRL+L) for Group Model
Send("^l")
; Access key for Group Model Path
Send("!G")
; Enter desired group model path
Send("X:\MyGrp")
; Access key for Name
Send("!N")
; Enter desired plex user name
Send("User")
; OK button is default button
Send("{ENTER}")
; Extract All from Host (Ctrl + Shift + E)
Send("^+e")
; Key Down to 14th Library
Send("{DOWN 14}")
; Extract All from 14th Library (Ctrl + Shift + E)
Send("^+e")
; Save
Send("^s")
; Open Windows Menu Items (Alt + W)
Send("!w")
; Close All Menu Item (L)
Send("l")
; Open Object Browser
Send("^b")
; Exit Script
Exit
Limitation - NO SPACES in the local model path