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 

transparency question

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
1817
Guest





PostPosted: Tue Jul 15, 2008 10:34 pm    Post subject: transparency question Reply with quote

Hi, can someone show a newbie how to set transparency for a window that is not owned by AHK script? I have gotten far enough to from info on new windows, like the ahk_class, so I will have some idea maybe if this is best way to find ID for window & change transparency on it? Smile
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 6264

PostPosted: Tue Jul 15, 2008 10:46 pm    Post subject: Re: transparency question Reply with quote

1817 wrote:
how to set transparency for a window that is not owned by AHK script?


Code:
Run %A_WinDir%\Notepad.exe,,,PID
WinWait, ahk_pid %PID%
ID := WinExist( "ahk_pid" PID )
WinSet,Transparent,200, ahk_id %ID%


Smile
_________________
Back to top
View user's profile Send private message
1817
Guest





PostPosted: Thu Jul 17, 2008 12:10 am    Post subject: Reply with quote

.... but what if the window is any displayed window with a ahk class? May I set transparency, only just if I know the AHK Class info? Very Happy
Back to top
1817
Guest





PostPosted: Thu Jul 17, 2008 12:10 am    Post subject: Reply with quote

(i.e. not necessarily if it's a Runned program)
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1145
Location: The Interwebs

PostPosted: Thu Jul 17, 2008 12:14 am    Post subject: Reply with quote

Code:
WinSet,Transparent,200, ahk_class YOURCLASSHERE
Back to top
View user's profile Send private message AIM Address
1817
Guest





PostPosted: Thu Jul 17, 2008 1:47 am    Post subject: Reply with quote

Krogdor, right to the point and I thank you. SKAN, thank you for that way too... I have learned two new things for different circumstances1 here Very Happy

But, I have a related question if you know this. How do I display a GUI control, with some assigned xyz AHK_CLASS, i can setup?.... Very Happy
Back to top
5parx



Joined: 20 Jun 2008
Posts: 11
Location: Lakewood, Colorado

PostPosted: Thu Jul 17, 2008 2:50 am    Post subject: Whoa Reply with quote

That's freakin awsome! Lol I didn't know that was even possible.
Is there a way to make any window opened transparent?
Like, if I manualy open a program can AHK automaticly make it transparant? And then run AHK on startup and in the background LOL that would be sweet.
_________________
Intelligence is power, and power is strength. But what is strength without a double-share of wisdom?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   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