Jump to content

Keep GUI Bottom-Most or disable it from responding to mouse clicks


AmbientMike
 Share

Recommended Posts

OK - I've made a transparent GUI with some text that I want to use as a sort of desktop splash / info panel on the desktop - that's all working well.  What I'd like is to be able to keep the GUI underneath all windows and stop the GUI ever getting focus as if it were just part of the desktop.

I know there are utilities out there that do this sort of thing already but they don't meet my needs so I'm trying to script one.

Anyone have any ideas on if this can be achieved the way I want or is there a smarter way of doing it without a transparent GUI and text labels?

Link to comment
Share on other sites

  • Moderators

You can always do GUISetState(@SW_DISABLE), to lock it in place and disable interaction.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

You can always do GUISetState(@SW_DISABLE), to lock it in place and disable interaction.

Now I didn't think that was working because with that on its own I get no visible window but if I use...

GUISetState()
GUISetState(@SW_DISABLE)
 
Then it works.  Thanks - easier than I had imagined!
 
EDIT - That worked to some degree.  For completeness I managed to force the GUI to be bottom-most by the addition of the following...
 
#include <WINAPI.au3>
_WinAPI_SetWindowPos ( $hGUI1, $HWND_BOTTOM, $POSX, $POSY, $GUIWidth, $GUIHeight, $SWP_NOACTIVATE )
Edited by AmbientMike
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...