Announcement

Collapse
No announcement yet.

Has the program been minimized?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • daviz
    replied
    Originally posted by Simonny9 View Post
    Hello i am using WinApi.IsWindowMinimized



    with&respect
    Simona, Brown
    employee tracking
    I have used it a couple of times too, however it was interesting to see other ways to accomplish the same task without need of plugins.

    Leave a comment:


  • Simonny9
    replied
    Hello i am using WinApi.IsWindowMinimized



    with&respect
    Simona, Brown
    employee tracking

    Leave a comment:


  • Sina Dehghani
    replied
    Hello again
    I'm sorry, I asked a lot of questions, I just output this program from it and it worked properly ... and I want to open it again with Autoplay with the file run function and the file from which I output it will return some value, what should I do ?! I mean, to establish a connection between these two programs ... I know the method in the ini file and the registry, etc. But how should it be accessed directly?

    Leave a comment:


  • startup
    replied
    Good Luck.

    Leave a comment:


  • Sina Dehghani
    replied
    Originally posted by startup View Post
    Code:
    -- Suppose you have an open folder named temp
    result = Window.EnumerateTitles(true);
    
    for a,z in pairs (result) do
    if String.Find(z, "temp", 1, false) ~= -1 then
    hndl = a
    break
    end
    end
    
    minimized = DLL.CallFunction("User32.dll", "IsIconic", hndl, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
    alert = Dialog.Message("Notice", minimized, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    Thank's a lot startup i try it.

    Leave a comment:


  • startup
    replied
    Code:
    -- Suppose you have an open folder named temp
    result = Window.EnumerateTitles(true);
    
    for a,z in pairs (result) do
    if String.Find(z, "temp", 1, false) ~= -1 then
    hndl = a
    break
    end
    end
    
    minimized = DLL.CallFunction("User32.dll", "IsIconic", hndl, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
    alert = Dialog.Message("Notice", minimized, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

    Leave a comment:


  • startup
    replied
    yes.
    you can modify the String.Find in my code to detect folders..
    if you remember :-
    z = full path.
    that means that you can catch folders also.

    Leave a comment:


  • herrin
    replied
    yes using winapi
    • WinApi.FindWindow
    • WinApi.IsWindowMinimized

    Leave a comment:


  • Sina Dehghani
    replied
    Originally posted by startup View Post
    yes daviz it has. but that was a simple function. some other functions makes a chalenge
    Thank you very much, what about folders ?! It is possible?!

    Leave a comment:


  • startup
    replied
    yes daviz it has. but that was a simple function. some other functions makes a chalenge

    Leave a comment:


  • daviz
    replied
    fantastic info Ulrich!
    great example startup!

    I had no idea DLL.CallFunction() had such potential.

    David R.

    Leave a comment:


  • herrin
    replied
    dude

    PHP Code:
    Declare Function IsIconic Lib "user32.dll" (ByVal hwnd As Long) As Long
    If minflag <> 0  (require String.ToNumberthen


    IsIconic Example

    Leave a comment:


  • startup
    replied
    in this function a is the handle z is the full path of the process after exit the loop a and z becomes nil so it is necessary to store a value in another variable like hndl or any name you like

    Leave a comment:


  • Sina Dehghani
    replied
    Thank's a lot Ulrich ...

    Originally posted by startup View Post
    result = Window.EnumerateProcesses(true);
    for a,z in pairs (result) do
    if String.Find(z, "IEXPLORE.EXE", 1, false) ~= -1 then
    hndl = a
    break
    end
    end
    minimized = DLL.CallFunction("User32.dll", "IsIconic", hndl, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
    alert = Dialog.Message("Notice", minimized, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);[/CODE]
    this code works correctly! Thank's a lot startup ...
    What' s is a and z in the loop?
    Why hndl = a ?

    Leave a comment:


  • startup
    replied
    result = Window.EnumerateProcesses(true);
    for a,z in pairs (result) do
    if String.Find(z, "IEXPLORE.EXE", 1, false) ~= -1 then
    hndl = a
    break
    end
    end
    minimized = DLL.CallFunction("User32.dll", "IsIconic", hndl, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
    alert = Dialog.Message("Notice", minimized, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);[/CODE]

    Leave a comment:

Working...
X
😀
🥰
🤢
😎
😡
👍
👎