User Forum    :: Powered by YaBB
  « MIDI-OX User Forum - minimize/maximize MIDI-OX via scripting »
Welcome, Guest. Please Login or Register.
May 18th, 2025, 3:56am


Home Home Help Help Search Search Members Members Login Login Register Register


   MIDI-OX User Forum
   MIDI-OX
   Scripting Questions
(Moderator: Jamie OConnell)
   minimize/maximize MIDI-OX via scripting
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   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 Quote Modify 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
*****






   
WWW Email

Gender: male
Posts: 2027
Re: minimize/maximize MIDI-OX via scripting
« Reply #1 on: Jan 17th, 2006, 10:34am »
Quote Quote Modify 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!

   
Email

Posts: 1
Re: minimize/maximize MIDI-OX via scripting
« Reply #2 on: Apr 2nd, 2006, 5:17pm »
Quote Quote Modify 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
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »


MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.