AutoHotkey Community

It is currently May 27th, 2012, 4:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: February 21st, 2010, 10:40 pm 
Offline

Joined: February 21st, 2010, 10:38 pm
Posts: 1
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2010, 12:50 am 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
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

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2010, 1:19 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
The above will hide the window from taskbar, not from the tray.

To delete tray icon, use Tray module:
http://www.autohotkey.com/forum/viewtop ... 42&start=0

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: JSLover, Mickers, rbrtryn and 70 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