Juve78

Command Window Block

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
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