Author |
Topic: minimize/maximize MIDI-OX via scripting (Read 1816 times) |
|
rkelso
New Member

 MIDI-OX Rules!
Posts: 1
|
 |
minimize/maximize MIDI-OX via scripting
« on: Jan 16th, 2006, 4:10pm » |
Quote Modify
|
Hello, Is it possible to minimize and later maximize the MIDI-OX window via a scripting command? Thanks! RKelso
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: minimize/maximize MIDI-OX via scripting
« Reply #1 on: Jan 17th, 2006, 10:34am » |
Quote Modify
|
Not directly, but maybe you could obtain a handle to the MIDI-OX instance Window and send it standard Windows messages: WM_MAXIMIZE or WM_MINIMIZE. There may be other possibilities in the Shell object for WSH as well.
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
aquawicket
New Member

 MIDI-OX Rules!

Posts: 1
|
 |
Re: minimize/maximize MIDI-OX via scripting
« Reply #2 on: Apr 2nd, 2006, 5:17pm » |
Quote Modify
|
'Visual Basic Code 'Minimize Midi-OX Button '----------------------- 'Declair these first at the top... 'API Declarations Private Declare Function FindWindow Lib "user32" Alias _ "FindWindowA" (ByVal lpClassName As String, ByVal _ lpWindowName As String) As Long Private Declare Function ShowWindow Lib "user32" (ByVal _ hwnd As Long, ByVal nCmdShow As Long) As Long Private Const SW_MINIMIZE = 2 'Here is a button to Minimize midi-ox '---------------------------------- Private Sub Button_Click() Dim WinHandle As Long WinHandle = FindWindow(vbNullString, "MIDI-OX") ShowWindow WinHandle, SW_MINIMIZE End Sub
|
|
IP Logged |
|
|
|
|