 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
yuriko
Joined: 21 Feb 2010 Posts: 1
|
Posted: Sun Feb 21, 2010 9:40 pm Post subject: Hide window from taskbar and system tray ? |
|
|
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 |
|
 |
TLM
Joined: 21 Aug 2006 Posts: 2926 Location: The Shell
|
Posted: Sun Feb 21, 2010 11:50 pm Post subject: |
|
|
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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|