Results 1 to 4 of 4

Thread: Minimizing App

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363
    Hi, I need to open and minimize another program. I'm using:
    Code:
    'Launch File Minimized -> Not Minimizing
    lretval = ShellExecute(0, "open", "0327000.exe", "", "D:\Program Files\Solomon IV\AP", SW_MINIMIZE)
    
    'Get Handle
    lhwnd = FindWindow(vbNullString, "Vendor Maintenance (03.270.00)")
    
    'Try Again to Minimize -> Not Minimizing
    Call Show Window(lhwnd, SW_MINIMIZE)
    If I do this to something like Notepad, it works like a charm, but not on this program. What else can I use if a program doesn't respond to the API's that I tried?

    Thanks in advance,
    Wade

    Wade

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    You'll be glad to know it looks like it's possible, damn hard but possible, There's a few thing I'm gonna have to iron out but I should get an answer for you.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Thumbs up

    This shoud work with everything
    Code:
        ShowWindow wnd&, 5 - IsWindowVisible(wnd&) * 5
    OR?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Angry

    Heck! Were did that ; come from?!? i typed &) not
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width