AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hide window from taskbar and system tray ?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
yuriko



Joined: 21 Feb 2010
Posts: 1

PostPosted: Sun Feb 21, 2010 9:40 pm    Post subject: Hide window from taskbar and system tray ? Reply with quote

is it possible for AHK to hide an active window it's clicking on ?

for example, sending keys and clicks to a window process which is not visible minimized or in system tray. it should show up in taskmgr tho.
Back to top
View user's profile Send private message
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Sun Feb 21, 2010 11:50 pm    Post subject: Reply with quote

Use WinHide to hide a window.
Control Click, Control Send and or Control Set Text are the most reliable to send clicks/text to a hidden control or window (ime).

For instance
Code:
DetectHiddenWindows, On
Run, Notepad,,Hide, nPid
WinWait, ahk_pid %nPid%
ControlSetText, Edit1, Hello World
;Below is for display purposes only. Not needed from here.
coordmode, tooltip, screen
count=3
Loop, %count%
   {
   tooltip % "Hidden Notepad opening in " count-- , % A_ScreenWidth / 2,10
   sleep, 1000
   }
tooltip
;To here. The below winshow 'unhides' the notepad.
WinShow


hth
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon Feb 22, 2010 12:19 am    Post subject: Reply with quote

The above will hide the window from taskbar, not from the tray.

To delete tray icon, use Tray module:
http://www.autohotkey.com/forum/viewtopic.php?t=26042&start=0
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group