AutoHotkey Community

It is currently May 27th, 2012, 11:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: May 15th, 2010, 12:52 am 
Offline

Joined: August 9th, 2009, 9:27 am
Posts: 35
I'm trying to make my dial up connection window be invisible. Not sure what the best way to do it, but right now I have this code:
Code:
#Persistent
WinWait, Network Connections,
WinSet, Transparent, 200, Network Connections


Problem is, if I launch the ahk script before the window exists, it never makes it transparent. I thought that's what winwait & persistent were for?

So I just need to make that window be invisible at all times as long as the script is running. Or perhaps even a toggle switch.

Well perhaps there's a better way to do this? Like always on bottom or positioned way off the screen... not sure. Any help appreciated :)

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 1:26 am 
Offline

Joined: October 18th, 2007, 9:21 pm
Posts: 343
Location: Saarland, Germany
You could write Winset, Transparent,... into a routine that keeps looking for the appearance of ...

Code:
#Persistent
SetTimer, xyz
Return

xyz:
    If WinExist("Network Connections")
        WinSet, Transparent, 200, Network Connections
Return


Quote:
I thought that's what winwait & persistent were for?
Yes, they are. But not by magic, but by ensuring the interpreter gets a chance to interpret the line when it counts.

_________________
Wolf

Schön wär's, wenn's schön wär!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 2:17 am 
Cool thanks! That helped. What do you think is the best way to do this? I want it to basically not exist. Always at the back, no input, etc. Is there a way to completely disable a window without actually closing it?

Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2010, 2:21 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
What about WinHide?


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], MSN [Bot], Yahoo [Bot] and 18 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