Results 1 to 3 of 3

Thread: Maximise

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Location
    CWMBRAN,WALES,UK
    Posts
    146

    Question

    Hi,
    I have this statement that along with the API, opens Notepad

    ShellExecute 0&, "OPEN", "A:\WageDet\Readme.txt", "", "", 1

    My question is... What statement can I add so that when Notepad executes it is maximised, or do I need another API function to achieve this?

    GRAHAM

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523
    For me it seems that all you have to do is to change the "1" at the end of your code to "3" and NotePad will be Maximized.
    Code:
    WAS:
    ShellExecute 0&, "OPEN", "A:\WageDet\Readme.txt", "", "", 1
    IS:
    ShellExecute 0&, "OPEN", "A:\WageDet\Readme.txt", "", "", 3
    HTH

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Location
    CWMBRAN,WALES,UK
    Posts
    146
    Brilliant, thanks QWERTY

    As a matter of fact I tried changing it to 2 to see what happened before I posted, shame I didn't try 3.

    Thanks again

    GRAHAM

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