Jump to content

Hide from taskbar


 Share

Recommended Posts

Im sorry, Im kinda new here at this.

Could you post the code that would do the entire thing? Its confusing for me :)

#include <Constants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>

$hWnd = WinGetHandle("Your window title", "Your window text")
$newStyle = $WS_EX_TOOLWINDOW
$oldStyle = _WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE)
_WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, BitOR($oldStyle, $newStyle))
Link to comment
Share on other sites

#include <Constants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>

$hWnd = WinGetHandle("Your window title", "Your window text")
$newStyle = $WS_EX_TOOLWINDOW
$oldStyle = _WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE)
_WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, BitOR($oldStyle, $newStyle))

Thanks, but the window goes smaller, like the style does, but it isnt topmost, nor out of the taskbar

Link to comment
Share on other sites

I have seen some trick with setting parent to desktop window:

#include <Constants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>

$hWnd = WinGetHandle("Your window title", "Your window text")
$parent = _WinAPI_GetDesktopWindow()
_WinAPI_SetParent($hWnd, $parent)

But it seems to not work too. Search forum. I'm sure there is answer for your question already.

Link to comment
Share on other sites

Looking on msdn, i found WS_EX_APPWINDOW, which keeps the window in the bar, how do i subtract that now?

Try this:

#include <Constants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>

$hWnd = WinGetHandle("Your window title", "Your window text")
$oldStyle = _WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE)
$newStyle = BitOR($oldStyle, $WS_EX_TOOLWINDOW)
$newStyle = BitAND($newStyle, BitNOT($WS_EX_APPWINDOW))
_WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, $newStyle)
Link to comment
Share on other sites

Try this:

#include <Constants.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>

$hWnd = WinGetHandle("Your window title", "Your window text")
$oldStyle = _WinAPI_GetWindowLong($hWnd, $GWL_EXSTYLE)
$newStyle = BitOR($oldStyle, $WS_EX_TOOLWINDOW)
$newStyle = BitAND($newStyle, BitNOT($WS_EX_APPWINDOW))
_WinAPI_SetWindowLong($hWnd, $GWL_EXSTYLE, $newStyle)
nope dosnt work
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...