After creating a process and running it , can I minimize/maximize it ?
Can I make it the active window ? ( i.e focus on it )
Also, the "noetpad" application which is being run is the code I've pasted above - Can I send it key strokes after creating it ? ( I've managed to send text to console applications but couldn't do the same on notepad )
Thanks in advanced
Can move the mouse and press the keyboard, that's great.
Now there's one thing left for me to find out... How can I make a specific window active ?
What I mean is - for example when you press Alt + Tab and choose the window you'd like to open, I need to do the same thing in the program so I could do some automation.
Does anyone knows which Class if any can give me that kind of control ?
Originally posted by Tomer G.:
I Didn't try it as It wont help.
Lets say my application sent Alt + Tab and the list of windows appeared,
I wont be able to find the specific window I'm looking for as I Got no way of knowing which window I'm pointing at.
I Need the OS to tell me the names of those windows.
One possible solution is to run the program when no other windows are open. Of course, I don't know if this is entirely possible since I don't know the context of what you are doing.
In reality, you would have to deal with user-themes and different fonts, user-interrupts which prevent the snapshot to get the image of the taskbar fast enough, different looks of the taskbar for win3.11 to win2003 and probably more problems.