ludocus Posted September 15, 2010 Share Posted September 15, 2010 Hi! I'd like to know how to make a little window that sticks to the taskbar, like iTunes has. I know how to do it with WinSetOnTop en then just position it on the taskbar. But that's not really how I want it. I want it...well....just like iTunes has . Thnx in advance Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 15, 2010 Share Posted September 15, 2010 Sounds like you want a Desk Band. Doesn't look easy though. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Kip Posted September 15, 2010 Share Posted September 15, 2010 http://msdn.microsoft.com/en-us/library/bb776819%28VS.85%29.aspx Scroll down just a little bit. They're called "Deskbands", maybe that will give you more hits at google. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
ludocus Posted September 15, 2010 Author Share Posted September 15, 2010 thnx! Link to comment Share on other sites More sharing options...
Mat Posted September 15, 2010 Share Posted September 15, 2010 Good luck! I asked this some time ago and got a response pointing to someone who had asked the same thing, can't find it right now, but the conclusion is that it's not easy. I'd try _WinApi_SetParent(). #include<WinApi.au3> #include<WindowsConstants.au3> Global $hTaskbar = WinGetHandle("[CLASS:Shell_TrayWnd]") Global $aTaskbarSize = WinGetPos("[CLASS:Shell_TrayWnd]") Global $hNotifyTray = ControlGetHandle($hTaskbar, "", "[CLASS:TrayNotifyWnd; INSTANCE:1]") Global $aNotifyTraySize = ControlGetPos($hTaskbar, "", $hNotifyTray) Local $nMyWidth = 100 $hGUI = GUICreate("test", 100, $aTaskbarSize[3] - 4, $aTaskbarSize[2] - $aNotifyTraySize[2] - $nMyWidth - 20, 2, $WS_POPUP, $WS_EX_TOOLWINDOW) $hBtn = GUICtrlCreateButton("X", $nMyWidth - 24, 2, 20, 20) GUISetState() _WinAPI_SetParent($hGUI, $hTaskbar) While 1 Switch GUIGetMsg() Case -3, $hBtn ExitLoop EndSwitch WEnd AutoIt Project Listing 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