Jump to content

how to pass Process ID to WinWait Function


CanadianHusky
 Share

Recommended Posts

Hello,


this line starts the app defined with cmd successfully and returns a valid (non zero) process id

AutoItX3Lib.AutoItX3 AIX = new AutoItX3Lib.AutoItX3();

int pid = AIX.Run(cmd, "", AIX.SW_MINIMIZE);

all the Window Managment Functions expect a string variable

this does not seem to work because the pid is an integer

AIX.WinWaitActive(pid);


How can I feed the WinWait function with the string parameter that it expects from the pid that was created earlier ?

The Form title of the app opened with cmd is variable and not known until it starts. 
With Standard AutoIT and SciTE I was able to feed Window Handles and Process IDs into Window Functions without a problem
I read Window Titles and Text (Advanced) in the main help file and many options how a Window title can be passed in are explained, all for the scripting environment.
even the WinGetHandle function on the C# binding expects and returns a parameter of type string, not a Pointer or (int) Process ID


thanks in advance for any tip

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...