How do you force a window to minimize when you do something like RUNPROGRAM()?
Thanks
			
			
									
									minimize a window
- 
				PB&J Lover
 - Enthusiast

 - Posts: 212
 - Joined: Fri Apr 22, 2005 2:07 pm
 - Location: U.S.A.
 - Contact:
 
minimize a window
-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
						Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
- Hroudtwolf
 - Addict

 - Posts: 803
 - Joined: Sat Feb 12, 2005 3:35 am
 - Location: Germany(Hessen)
 - Contact:
 
Code: Select all
RunProgram ("NotePad.exe")
ShowWindow_(GetForegroundWindow_(),#SW_MINIMIZED)- 
				PB&J Lover
 - Enthusiast

 - Posts: 212
 - Joined: Fri Apr 22, 2005 2:07 pm
 - Location: U.S.A.
 - Contact:
 
minimizing
I'm getting a "constant not found error."
Which window will that minimize?
The window I want to minimize is the program window that launches the other app. I should have been more clear.
Thanks.
			
			
									
									Which window will that minimize?
The window I want to minimize is the program window that launches the other app. I should have been more clear.
Thanks.
-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
						Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
- Hroudtwolf
 - Addict

 - Posts: 803
 - Joined: Sat Feb 12, 2005 3:35 am
 - Location: Germany(Hessen)
 - Contact:
 
Sorry.
Use this...
			
			
									
									
						Use this...
Code: Select all
RunProgram ("NotePad.exe")
ShowWindow_(GetForegroundWindow_(),#SW_SHOWMAXIMIZED	)- 
				PB&J Lover
 - Enthusiast

 - Posts: 212
 - Joined: Fri Apr 22, 2005 2:07 pm
 - Location: U.S.A.
 - Contact:
 
minimize
Cool.
I fixed it. It was
ShowWindow_(GetForegroundWindow_(),#SW_SHOWMINIMIZED)
and it works now.
Thanks!
			
			
									
									I fixed it. It was
ShowWindow_(GetForegroundWindow_(),#SW_SHOWMINIMIZED)
and it works now.
Thanks!
-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
						Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
- Hroudtwolf
 - Addict

 - Posts: 803
 - Joined: Sat Feb 12, 2005 3:35 am
 - Location: Germany(Hessen)
 - Contact:
 
- 
				PB&J Lover
 - Enthusiast

 - Posts: 212
 - Joined: Fri Apr 22, 2005 2:07 pm
 - Location: U.S.A.
 - Contact:
 
Yes, I wanted to MINIMIZE the window. You first example was missing the SHOW part of the constant.
I wasn't clear, but it works now. Thanks.
			
			
									
									I wasn't clear, but it works now. Thanks.
-- DB
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein
						Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.
Albert Einstein