Jump to content

Recommended Posts

Posted

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?

Posted (edited)

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

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
×
×
  • Create New...