Sign in to follow this  
Followers 0
Aktonius

Possible to Unactivate Window with command?

5 posts in this topic

I dont want to activate another window or minimize the current one. I need the window to remain visible but change it to non-active

Share this post


Link to post
Share on other sites



WinSetState ( "title", "text", @SW_DISABLE )

The above code make it remain visible, but will disable its usability (until you enable it again). If completely disabling its functionality is not what you want then you will have to use WinActivate to bring another window forward. I tried creating a Gui, activating it and immediately deleting it, but that just reactivated the previous window. Therefore, as far as I can tell, you will have to activate a different window.


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Perhaps if you have a hidden small gui with 0 width, you could just make that active, which would only really emulate what you want, as you will actually be making another window active, you just wont see it.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Target the Desktop is also possible. If I recall it correctly.


"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Share this post


Link to post
Share on other sites

also you can give it a try to this UDF :)

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
Sign in to follow this  
Followers 0