Automate App via WIN32 possible?
- From: quantass <quantass@xxxxxxxxx>
- Date: Fri, 01 Jun 2007 14:27:15 -0700
I'm in a situation where I need to launch a new process then automate
it to navigate its single menu and thru a file dialog. The main
application to launch the new process and automate it needs to be able
to wake up during a specifc web request (web app initiated) or act as
an always waiting / always on windows service (windows service
initiated) so that when the call comes in, the new process is created
and automation begins.
service (Log On either as Local System w/ Interactive or This Account -From what i gather launching a new process via a web app or a windows
Admin) will prevent automation via SendMessage / PostMessage since
there is no interactive desktop.
My question is could the Terminal Services API or
CreateProcessAsUser / CreatDesktop / CreateWindowStation win32 api be
my solution around this non-interactive desktop in order to get
PostMessage to function for my automation process. Or is there a
better approach to automating this external process when a user is NOT
logged onto the desktop? There is no custom API available for the
launched process.
So far Im eyeing CreateProcessAsUser. On MSDN:
http://msdn2.microsoft.com/en-us/library/ms682429.aspx at the
lpStartupInfo section it explains: "If you want the process to be
interactive, specify winsta0\default."
Thanks.
.
- Follow-Ups:
- Re: Automate App via WIN32 possible?
- From: Crest Teethgel
- Re: Automate App via WIN32 possible?
- Prev by Date: Re: TrackPopUpMenu does not display access letter
- Next by Date: drawing shapes in win32
- Previous by thread: Re: TrackPopUpMenu does not display access letter
- Next by thread: Re: Automate App via WIN32 possible?
- Index(es):
Relevant Pages
|