ShellExecute("D:\ Contents.pdf") WinWaitActive(" Contents.pdf - Adobe Reader") WinSetState(" Contents.pdf - Adobe Reader", "", @SW_MAXIMIZE)