AutoHotkey Community

It is currently May 26th, 2012, 4:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: March 27th, 2009, 11:53 am 
Offline

Joined: January 30th, 2009, 5:43 am
Posts: 12
Is it possible to open a window an hide it immediately before it pops up?

Code:
ControlClick, OpenWin2Button, Win1
;;Window pops up for a sec
WinHide,  Win2
Sleep, 3000
WinShow,  Win2


2nd question:
can i somehow click a button in a hidden window?

Code:
WinHide, Win1
ControlClick, OpenWin2Button, Win1
WinHide,  Win2


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 27th, 2009, 1:52 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Quote:
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
or
Gui,Show,Hide

Reg. 2nd one, I think all you need to add is:
Code:
DetectHiddenWindows,On
ControlClick, OpenWin2Button, Win1

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2009, 5:49 pm 
Quote:
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
or
Gui,Show,Hide


Unfortuneatly it wont work becouse the application has a login window and as it pops up the program unhide itself.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2009, 7:51 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Then try to loop after Run:
Code:
Run,...
If ErrorLevel
 ...
Loop
{
 WinHide, your window
 IfWinExist, your window
  break
}
;Program started and window is hidden

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2009, 11:26 pm 
i guess it wont solve my problem.If i hide the window and send a message to it to open a window, the child will be visible. is there any solution to open a window without it being drawn even for a millisec?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 2nd, 2009, 11:32 pm 
Offline

Joined: January 12th, 2009, 11:38 pm
Posts: 55
Location: Southern Ca, USA
yes you can, but it won't block access you said
Quote:
Unfortuneatly it wont work becouse the application has a login window and as it pops up the program unhide itself.
Because the application reactivates itself you will still see a slight glimpse of it, before you loop/hide it.
You are still able to hide the window when it is first run by:
Code:
Run, (the window name), Hide
as mentioned above by HotKeyIt


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 17th, 2009, 6:53 am 
Bringing old topic but well. I want to do this :

Code:
Run, iexplore.exe http://www.google.ca, Hide


Then stay hided for 20-30 sec ramdomly and kill the process.

I tried lot of things but I am stuck at the hide part,

Anyway to leave it hide ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 17th, 2009, 11:10 am 
Pasdoy wrote:
Bringing old topic but well. I want to do this :

Code:
Run, iexplore.exe http://www.google.ca, Hide


Then stay hided for 20-30 sec ramdomly and kill the process.

I tried lot of things but I am stuck at the hide part,

Anyway to leave it hide ?

Pay attention to the jotts and tiddles in the help file
Quote:
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
Code:
Run, iexplore.exe http://www.google.ca,  ,Hide


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, rbrtryn, SKAN, tterB, Yahoo [Bot] and 12 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