Wednesday, February 27, 2013

Click the PVS Target Device Optimizer button with AutoIt

Short but sweet script.  Disappointing that Citrix doesn't have a silent run switch for this application.

;
; AutoIt Version: 3.0
; Language:       English
; Platform:       Win9x/NT
; Author:         Trentent Tye (trentent@ca.ibm.com)
;
; Script Function:
;   Execute the OK button on the Provisioning Services Device Optimization Tool program
;

; Wait for the Provisioning Services Device Optimization Tool to become active
WinActivate("Provisioning Services Device Optimization Tool")

;pause 3 seconds
Sleep(3000)
;click OK
ControlClick("Provisioning Services Device Optimization Tool", "", "[CLASS:Button; TEXT:&OK; INSTANCE:1]")

; Finished!

No comments: