Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2006
    Posts
    355

    Detec if autorrun is minimized or maximized?

    Detec if autorrun is minimized or maximized?

    for example: autorrun.exe... is maximized
    aplication minimize

    else is maximized
    aplication minimize

    thx!!

  2. #2
    Join Date
    Aug 2006
    Posts
    355
    please help!!

  3. #3
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  4. #4
    Join Date
    Aug 2006
    Posts
    355
    Code:
    jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
    if jj == 0 then
    Application.Restore();
    exit
    thanks, it works well.

    but not this diminished, as I diminish it with he himself button, that is to say, when pressing on “minimize/restore button " if it gives back 0 to me is because this diminished and then restore, but since I make to even diminish it but this?
    thanks

    example (noty work):

    Code:
    jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
    if jj == 0 then
    Application.Restore();
    elseif jj == ????? then
    Application.Minimize();
    exit

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Code:
    jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
    if jj == 0 then
         Application.Restore();
    else 
         Application.Minimize();
    exit
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  6. #6
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    Quote Originally Posted by TJ_Tigger View Post
    Code:
    jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
    if jj == 0 then
         Application.Restore();
    else 
         Application.Minimize();
    exit
    I think you mean:
    Code:
    jj = String.ToNumber(DLL.CallFunction(_SystemFolder.."\\User32.dll", "IsIconic", Application.GetWndHandle(), DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL))
    if jj == 0 then
         Application.Restore();
    else 
         Application.Minimize();
    end
    Thanks for the code. I was looking for a way to do this.

  7. #7
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    oops yeah. Cut and paste bug bit me again
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  8. #8
    Join Date
    Aug 2006
    Posts
    355
    thank you very much but it does not work.

    It does not minimized autorrun, but when this minimized if it restored it…

    some solution? thanks!

  9. #9
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    I have the code above working in my IR Project Code Viewer project. It is part of the popup menu for the task bar. You can find the code from a link in my sig below.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  10. #10
    Join Date
    Aug 2006
    Posts
    355
    sorry but it does not work.

    It does not minimized autorrun, but when this minimized if it restored it…

  11. #11
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Solmos View Post
    sorry but it does not work.

    It does not minimized autorrun, but when this minimized if it restored it…
    Can you post the project in which the code does not work?

    File-> Export. . .
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. open menu minimized
    By chippihc in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 04-21-2003, 07:31 PM

Posting Permissions

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