Results 1 to 9 of 9

Thread: Small Quick Question

  1. #1
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Small Quick Question

    Okay, so I use "Getapplication.minimize;" in my script, but I need to know what the opposite of that is (will pop scar up from the toolbar). I'v tryed Getapplication.maximize and Getapplication.restore, but it didn't work. Anyone know what the code is that does this?

  2. #2
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Why don't you make a procedure for that, it would double click on the blue bar at the top of the Scar screen.
    Formerly known as Cut em2 it

  3. #3
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ...that is not what I want it to do. I just want it to restore SCAR when it is minimized. Anyways I was thinking there would be a code thing for it.

  4. #4
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    FindWindow('SCAR Divi CDE');


    This should work or if you have the size of the window:

    SCAR Code:
    FindWindowBySize(Width, Height);

    Cut em2 it
    Formerly known as Cut em2 it

  5. #5
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    GetApplication.BringToFront;

    (At least, I think that unminimizes it)

  6. #6
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Na I tried it and it doesn't..

    Even this didn't work..:
    SCAR Code:
    program New;
     
    Procedure RestoreSCAR;
    var
      Hand: Integer;
    begin
      Hand := GetClientWindowHandle;
      SetClientWindowHandle(GetApplication.Handle);
      ActivateClient;
      GetApplication.BringToFront;
      SetClientWindowHandle(Hand);
    end;
     

    begin
      GetApplication.minimize;
      Wait(1000);
      RestoreSCAR;
    end.
    Huh.. idk..

  7. #7
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Bullzeye, yours won't work just cause SCAR is minimized. Otherwise I tryed it when it wasn't minimized and it worked.

    So there is no possible way to do it? Derek- I didn't really get what you were doing there.

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by osmm View Post
    Okay, so I use "Getapplication.minimize;" in my script, but I need to know what the opposite of that is (will pop scar up from the toolbar). I'v tryed Getapplication.maximize and Getapplication.restore, but it didn't work. Anyone know what the code is that does this?
    Check your PM's.

    SCAR Code:
    program New;

    begin
    GetSelf.WindowState := wsMinimized;
    GetSelf.WindowState := wsNormal;
    end.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  9. #9
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh, sorry. Thanks a lot Wizzup.

    For everyone else. The answer isssssssssss................

    GetSelf.WindowState := wsMinimized; To minimize
    GetSelf.WindowState := wsNormal; To maximize

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Small script help reeeeal quick
    By FuruChan in forum OSR Help
    Replies: 5
    Last Post: 06-01-2008, 11:11 PM
  3. a little small question
    By kingarabian in forum OSR Help
    Replies: 0
    Last Post: 09-24-2007, 02:30 AM

Posting Permissions

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