Mat Posted October 19, 2009 Share Posted October 19, 2009 If anyones interested, you can manipulate the teskbar items as a toolbar control, I believe the taskbar item text is always the same as the window title, if not then this will fail! #include<Memory.au3> #include<SendMessage.au3> $hGUI = GUICreate ("lol!!") GUISetState () Sleep (1000) _HideTaskBarItem ($hGUI) Sleep (5000) Func _HideTaskBarItem ($hWnd, $sText = "") Local $sTitle = WinGetTitle ($hWnd, $sText), $hTray = ControlGetHandle ("[CLASS:Shell_TrayWnd]", "", "[CLASS:ToolbarWindow32; INSTANCE:2]") For $i = 0 to _SendMessage($hTray, 1024 + 24) $sText = _ToolbarGetText ($i) If $sText = $sTitle Then Return _SendMessage($hTray, 1024 + 22, $i) Next Return SetError (1, 0, 0) EndFunc ; ==> _HideTaskBarItem Func _ToolbarGetText($iCommandID) ; stolen and edited from GUIToolbar.au3 Local $hTray = ControlGetHandle ("[CLASS:Shell_TrayWnd]", "", "[CLASS:ToolbarWindow32; INSTANCE:2]"), _ $iBuffer = _SendMessage($hTray, 1024 + 75, $iCommandID) If $iBuffer = 0 Then Return SetError(True, 0, "") If $iBuffer = 1 Then Return SetError(False, 0, "") If $iBuffer <= -1 Then Return SetError(False, -1, "") $iBuffer += 1 $iBuffer *= 2 Local $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]"), $pBuffer = DllStructGetPtr($tBuffer), $iRet Local $tMemMap, $pMemory = _MemInit($hTray, $iBuffer, $tMemMap) $iRet = _SendMessage($hTray, 1024 + 75, $iCommandID, $pMemory, 0, "wparam", "ptr") _MemRead($tMemMap, $pMemory, $pBuffer, $iBuffer) _MemFree($tMemMap) Return SetError($iRet > 0, 0, DllStructGetData($tBuffer, "Text")) EndFunc ; ==> _ToolbarGetText Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
Fidel Posted November 21, 2009 Share Posted November 21, 2009 (edited) The trick is "$WS_EX_TOOLWINDOW"ie.$Form1 = GUICreate($title, $width, $height, $left, $top, BitOR($WS_DLGFRAME, $WS_POPUP), $WS_EX_TOOLWINDOW)or.............$hParent = GUICreate('')$hForm = GUICreate('MyGUI', 400, 400, -1, -1, -1, -1, $hParent) Edited November 21, 2009 by Fidel Link to comment Share on other sites More sharing options...
CodyBarrett Posted November 21, 2009 Share Posted November 21, 2009 i use $gui = Guicreate (':o',200,50,-1,-1,-1,-1,Wingethandle ('[CLASS:Progman]','')) GUisetstate () While GUIGetMsg () <> -3 wend [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] 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