Excalibur Posted May 16, 2008 Share Posted May 16, 2008 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 Link to comment Share on other sites More sharing options...
smashly Posted May 16, 2008 Share Posted May 16, 2008 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 Link to comment Share on other sites More sharing options...
Excalibur Posted May 17, 2008 Author Share Posted May 17, 2008 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 Link to comment Share on other sites More sharing options...
martin Posted May 17, 2008 Share Posted May 17, 2008 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now