Jump to content
Sign in to follow this  
Excalibur

Fighting with the start bar.

Recommended Posts

Excalibur

Is there any way to get a window to stay on top of the start bar? I made a small clock that I want to stay on top of the start bar. As soon as you click the start bar, it goes behind it. So far, theres are the window styles I've used: $WS_EX_TOPMOST, $WS_EX_WINDOWEDGE


Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein

Share this post


Link to post
Share on other sites
smashly

Hi,

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
Opt("WinTitleMatchMode", 4)

$hTB = WinGetHandle("classname=Shell_TrayWnd")
$hGUI = GUICreate("", 26, 22, 2, -20, $WS_POPUP, $WS_EX_MDICHILD, $hTB)
GUISetOnEvent($GUI_EVENT_CLOSE, "Close")
GUISetState()

While 1
    GUISetBkColor(Random(0x000000, 0xFFFFFF), $hGUI)
    Sleep(100)
WEnd

Func Close()
    Exit
EndFunc

Cheers

Share this post


Link to post
Share on other sites
Excalibur

lmao. I did not know it was that easy. Thanks, works like a charm. :)


Ooo Ëxçã¿îbúr ooO"Information Is Not Knowledge." ~Albert Einstein

Share this post


Link to post
Share on other sites
martin

Hi,

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)
Opt("WinTitleMatchMode", 4)

$hTB = WinGetHandle("classname=Shell_TrayWnd")
$hGUI = GUICreate("", 26, 22, 2, -20, $WS_POPUP, $WS_EX_MDICHILD, $hTB)
GUISetOnEvent($GUI_EVENT_CLOSE, "Close")
GUISetState()

While 1
    GUISetBkColor(Random(0x000000, 0xFFFFFF), $hGUI)
    Sleep(100)
WEnd

Func Close()
    Exit
EndFunc

Yes, works fine as long as you have not set the task bar to Auto Hide.

Cheers


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  

×