I want to activate a running application that is minimized and send keys to it. The keys include F4, Escape, Enter, and any number of strings.
I know how to use SendKeys, but I can't sendkeys to a minimzed app. When I try to use the SetForegroundWindow API, it activates the program in the windows taskbar but the window doesn't return to the normal window state.
Is there a way to send keys to a minimized application from my application? Is there a way to activate the application and bring it to the foreground so I can use the SendKeys command?
I read all about the SendMessage API but I can't get it to work. Any detailed help would be appreciated! Thanks.
P.S. I'm using C#.
I know how to use SendKeys, but I can't sendkeys to a minimzed app. When I try to use the SetForegroundWindow API, it activates the program in the windows taskbar but the window doesn't return to the normal window state.
Is there a way to send keys to a minimized application from my application? Is there a way to activate the application and bring it to the foreground so I can use the SendKeys command?
I read all about the SendMessage API but I can't get it to work. Any detailed help would be appreciated! Thanks.
P.S. I'm using C#.