AutoHotkey Community

It is currently May 27th, 2012, 2:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: September 19th, 2005, 11:25 am 
Offline

Joined: November 16th, 2004, 1:05 pm
Posts: 83
hey all,
is there any way too remove window from the taskbar along the bottom of the screen, without exiting it.? like make it invisable i supose...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2005, 11:30 am 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
winhide
Winset
minimize

Have a look for these at the Helpfile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2005, 4:46 pm 
Offline

Joined: November 16th, 2004, 1:05 pm
Posts: 83
That will make the window invis but i dont want to do that, i need to remove the Clicky thing from teh taskbar..... but use the ALT+TAB to switch as u normally would.... need it too hide stuff when its open and i dont want others too see it.!
Example, this window on task bar says "Autohotkey Communi..." i need THAT gone from task bar but not window invis ! hehe


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2005, 4:53 pm 
Offline

Joined: March 24th, 2005, 11:50 am
Posts: 398
Location: germany
With winsettitle you could change the name of a Window, or erase it.
Hope, this is it, what you want to do :?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2005, 7:23 pm 
Try the following example:

Code:
Run, notepad.exe

WinWait, Untitled - Notepad ahk_class Notepad

WinGet, hw_notepad, ID, Untitled - Notepad ahk_class Notepad

hw_parent := DllCall( "GetParent", "uint", hw_notepad )

WinGet, hw_progman, ID, Program Manager ahk_class Progman

DllCall( "SetParent", "uint", hw_notepad, "uint", hw_progman )

MsgBox, check the taskbar for the Notepad button... shouldn't find it

DllCall( "SetParent", "uint", hw_notepad, "uint", hw_parent )

MsgBox, check the taskbar for the Notepad button... it's back

WinClose, ahk_id %hw_notepad%
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2005, 7:48 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
shimanov wrote:
Code:
MsgBox, check the taskbar for the Notepad button... shouldn't find it

That's true, shimanov, but I can't see the Notepad window and it isn't present in the ALT-TAB dialog too.
It seems that steveiwonder would like to see the window and his icon in the ALT-TAB menu but not his button in the task bar.
Do you think it is possiible ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 19th, 2005, 8:08 pm 
Nemroth wrote:
I can't see the Notepad window and it isn't present in the ALT-TAB dialog too.


There are two side-effects with the method in use:

* The window's button is removed from the taskbar and also from the ALT-TAB listing.
* The window is lowered in the z-order. So any windows in the same position will obscure the window acted upon with this method.

Try this experiment:

1. Minimize (or close all windows)
2. Run Window's Notepad
3. Run the following script:

Code:
WinGet, hw_notepad, ID, ahk_class Notepad

if hw_notepad=
{
   MsgBox, Failure to WinGet Notepad ID!
   ExitApp
}

hw_parent := DllCall( "GetParent", "uint", hw_notepad )

WinGet, hw_progman, ID, Program Manager ahk_class Progman

DllCall( "SetParent", "uint", hw_notepad, "uint", hw_progman )

MsgBox, check the taskbar for the Notepad button... shouldn't find it

DllCall( "SetParent", "uint", hw_notepad, "uint", hw_parent )

MsgBox, check the taskbar for the Notepad button... it's back
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 2:00 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The above is a very interesting technique. Below is another script that seems to work on some windows. However, like the other method, the window vanishes from both the taskbar and the alt-tab menu, so there's no easy way to activate it. In fact, even locating the window manually might be impossible. You might have to use WinActivate or WinClose to get to it.

Run Notepad
WinWait Untitled - Notepad
DetectHiddenWindows On
; All of the following commands use the "last found window" determined by WinWait (above):
WinHide
WinSet, ExStyle, +0x80 ; 0x80 is WS_EX_TOOLWINDOW
WinShow
MsgBox Work with the Notepad window a little then press OK to put it back the way it was.
WinHide
WinSet, ExStyle, -0x80 ; 0x80 is WS_EX_TOOLWINDOW
WinShow


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 2:57 am 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
:shock: Chris, you of all people shoud know.... [ code] ... [ /code]
:roll: :lol: :)

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 3:01 am 
Chris wrote:
The above is a very interesting technique.


This behavior is by design and the method is described at MSDN under the "Managing Taskbar Buttons" topic.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 7:46 am 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
shimanov wrote:
Nemroth wrote:
I can't see the Notepad window and it isn't present in the ALT-TAB dialog too.


There are two side-effects with the method in use:

* The window's button is removed from the taskbar and also from the ALT-TAB listing.
* The window is lowered in the z-order. So any windows in the same position will obscure the window acted upon with this method.


Perfectly true !!! My apologies !!!

Chris wrote:
The above is a very interesting technique. Below is another script that seems to work on some windows. However, like the other method, the window vanishes from both the taskbar and the alt-tab menu, so there's no easy way to activate it. In fact, even locating the window manually might be impossible. You might have to use WinActivate or WinClose to get to it.


Very Interesting script too.

So strange. In each case you have the dialog box icon in the ALT-TAB menu and not the icon of Notepad, even if the notepad window exists and is visible (not hidden) (- but eventually at the bottom of the others windows) !!! The job is done for hidding the Notepad's window button in the task bar but the notepad icon is not visible in the ALT-TAB menu for the two examples. A built in feature of the OS ?

Bravo, shimanov and Crhis, for the beautifull work !


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 12:31 pm 
Offline

Joined: November 16th, 2004, 1:05 pm
Posts: 83
Those scripts were awsome but, chrises was easier to use.... so i too some from there.... i tying to make it so u can enter a title of a window and it removes it from that task bar.... it does that but... it come back to the task bar straight away can you see whats wrong with it? :twisted:
Code:
DetectHiddenWindows On
sleep,100
Gui, Add, Text,, Enter window title here!
Gui, Add, Edit, vtitle ym
Gui, Add, Button,,Ok
Gui, Show,,Title input
Return
Gui,Close:
Buttonok:
Gui,Submit


WinHide,%title%
WinSet, ExStyle, +0x80
WinShow, %title%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 12:41 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The tricks might not work with certain types of windows. If it your script works on Notepad but not on others, the others are probably "resistant".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 2:03 pm 
Offline

Joined: November 16th, 2004, 1:05 pm
Posts: 83
I wouldn't say any are resistant, i made the same window title disapear form the task bar with your script, but mine just seems to make it flash the and come back, with anything, thats the problem... have any idea why?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 20th, 2005, 3:59 pm 
Try this:

Code:
DetectHiddenWindows On
sleep,100
Gui, Add, Text,, Enter window title here!
Gui, Add, Edit, vtitle ym
Gui, Add, Button,,Ok
Gui, Show,,Title input
Return

GuiClose:
ExitApp

Buttonok:
Gui,Submit

ifWinExist, %title%
{
   WinHide
   WinSet, ExStyle, +0x80
   WinShow
}
return


Review Last Found Window and its relevance to WinHide, WinSet, WinShow, etc.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], nimda, poserpro, rbrtryn, sjc1000, Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group