#include #include #include ;"Send" is used to call a key stroke on the keyboard and open the application. "F2" is the Shortcut key that is set for "Epm Control Center" This Shortcut key can be changed. ; Shortcut key can be set by following steps given in - http://windows.microsoft.com/en-in/windows/create-keyboard-shortcuts-open-programs#1TC=windows-7 ; Please note that we can run any .exe file using the "run" command example: Run ("notepad.exe"). But for some reason this did not work with EPMControl.exe, could be due to windows authorization, and need to research on this.need to research on this. Send("{F2}") ; Wait for the Notepad to become active. The classname "Notepad" is monitored instead of the window title WinWaitActive("[CLASS:EPMControl.exe]") ;what is required. ; 2. Then “alt” key to select menu section ; 3. Keyboard right arrow key 1 time ; 4. Keyboard “down” arrow Key 4 times ; 5. Enter 2 times Send ("{Alt}") Sleep (50) Send ("{right}") sleep(50) Send ("{down}") sleep(50) Send ("{down}") sleep(50) Send ("{down}") sleep(50) Send ("{down}") sleep(50) Send ("{Enter}") sleep(50) Send ("{Enter}") sleep(50) ;Finaly cloes the window. WinWaitClose("[CLASS:EPMControl.exe]")