Juve78 Posted February 23, 2017 Share Posted February 23, 2017 I am looking to somehow block access to a command window from being closed. My script would be outputting and showing the user what is happening but I do not want them to close the command window out as it will stop the script from running? Any help would be great. Link to comment Share on other sites More sharing options...
benners Posted February 24, 2017 Share Posted February 24, 2017 16 hours ago, Juve78 said: I am looking to somehow block access to a command window from being closed. My script would be outputting and showing the user what is happening but I do not want them to close the command window out as it will stop the script from running? Any help would be great. One way would be to use WinMove and move the window off screen or resize to 1 pixel width and height (not tried). Another is hide the window command window, either using WinSetState and the @SW_HIDE flag or if your script calls the command with Run then again use @SW_HIDE. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now