Minimize a single Window

Started by siocnarf, November 02, 2017, 12:54:27 PM

Previous topic - Next topic

siocnarf

I am looking to minimize Oracle Universal installer with Winbatch. It is like a big DOS Window. What is the command to force a window to become minimize?

AddExtender("wwctl44i.dll")

;Title: Oracle Universal Installer
;ID: 0
;Class: ConsoleWindowClass
;Level: 1

; Default cWndByWndSpec seems OK here
;ControlHandle=cWndByWndSpec("ConsoleWindowClass","jdev_suite_122120_win64",0)
ControlHandle=cWndByWndSpecName("Oracle Universal Installer","jdev_suite_122120_win64",0)
; ControlHandle=DllHwnd('Oracle Universal Installer')
WinWaitExist("Oracle Universal Installer", -1 )  ;Wait for window to exist ;TODO Check title and timeout value


;Title: Oracle Universal Installer
;ID: 0
;Class: ConsoleWindowClass
;Level: 1

; Default cWndByWndSpec seems OK here
;ControlHandle=cWndByWndSpec("ConsoleWindowClass","jdev_suite_122120_win64",0)
ControlHandle=cWndByWndSpecName("Oracle Universal Installer","jdev_suite_122120_win64",0)
; ControlHandle=DllHwnd('Oracle Universal Installer')
WinActivate(cWinidConvert(Controlhandle))   ; Activates Window

td

Please see the WinIconize topic in the Consolidated WIL Help file.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade