Jump to content

How can the GUI be stuck to the desktop? HELP?


RomanK
 Share

Recommended Posts

Hello Guys,

I have been watching this forum for a few days now, and I learned so much! My Browser favourite toolbar has grown from one line to three!!!

And now I need your help... and I'm sure some of you want to know this, too:

How can I set a GUI as the bottom window, so that it allways lays under the other windows and kind of "sticks" to the desktop?

But I have not found a function, an Au3 option or even a udf for this. I used google, the forum search and of course the help file - well, but I don't really know what to search for.

I am working with the current version of AutoIt.

Greets, Roman

EDIT: Please don't post me explanation-less DLL-Things, I don#t understand that DLLs.

Edited by RomanK
[font="Courier New"]http://RomanK.hondadesigns.com[/font]
Link to comment
Share on other sites

No, I wasn't talking about magnifying to screen edges, but the window order.

Let's say you have 3 windows open.

When you click at one at the taskbar, it becomes the top window, and the other are "under" it.

Back to AutoIt:

To prevent the GUI from being "under" another window you can set

WinSetOnTop("My Test GUI" , "", 1)

But is there also a way to have it the bottom window, so that all others are on top / "over" it?

But by the way, the code you linked to is very useful! :-D I will also be using that in my next project, but for that, I need to solve the problem first.

Edited by RomanK
[font="Courier New"]http://RomanK.hondadesigns.com[/font]
Link to comment
Share on other sites

You can use this:

#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
$Desktop = WinGetHandle("[CLASS:Progman]")
#region - GUI Create
$GUI = GUICreate('Stuck on desktop')
_WinAPI_SetParent($GUI,$Desktop)
GUISetState()
#endregion
#region - GUI SelectLoop
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd
#endregion
but then, it is NOT shown in the Taskbar.

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

You can use this:

#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
$Desktop = WinGetHandle("[CLASS:Progman]")
#region - GUI Create
$GUI = GUICreate('Stuck on desktop')
_WinAPI_SetParent($GUI,$Desktop)
GUISetState()
#endregion
#region - GUI SelectLoop
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd
#endregion
but then, it is NOT shown in the Taskbar.

Dankeschön!!!!!!!!! Ganz ganz ganz dickes Dankeschön Andy!

:P :P

[font="Courier New"]http://RomanK.hondadesigns.com[/font]
Link to comment
Share on other sites

That works, but why do you need this?

Sorry, top secret by now. I'd really like to tell you, but I don't want some idiot to copy my idea before I have even finished or published my program.

But I can tell you that it will improve Windows' usability quite a lot so that you can do things faster and easier with less clicks. :P

[font="Courier New"]http://RomanK.hondadesigns.com[/font]
Link to comment
Share on other sites

Sorry, top secret by now. I'd really like to tell you, but I don't want some idiot to copy my idea before I have even finished or published my program.

But I can tell you that it will improve Windows' usability quite a lot so that you can do things faster and easier with less clicks. :P

Please don`t insult members!
Link to comment
Share on other sites

  • 1 year later...

This is the caravelle guy...based on those posts I would normally guess he thinks little of everyone he talks to. But I will give him the benefit of the doubt and say English is probably not his first language, so his nuances might only have the appearance of offensiveness.

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...