Jump to content

Hide Window in windows 10 - (Moved)


Recommended Posts

We have  autoit code to run and hide some software. It was working on windows 7 successfully. But when we migrate to windows 10, we saw that it didn't  work while hiding window.

ShellExecute("C:\IPMS\NSClient++\nscp.exe", "test",@SW_HIDE)

Sleep(2000);

WinSetState ( "nscp.exe", "", @SW_HIDE)

When i print return code of WinSetState, it is 1 (no error)

Do you have any idea ?

Link to comment
Share on other sites

Did you run the exe before ?  Now let's make a full runable script so we can stop guessing :

#include <Array.au3>

Opt ("WinTitleMatchMode", 2)

ShellExecute("C:\IPMS\NSClient++\nscp.exe", "test")
Sleep(2000)
$array = WinList ("nscp.exe")
_ArrayDisplay ($array)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...