| View previous topic :: View next topic |
| Author |
Message |
1817 Guest
|
Posted: Tue Jul 15, 2008 10:34 pm Post subject: transparency question |
|
|
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?  |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Tue Jul 15, 2008 10:46 pm Post subject: Re: transparency question |
|
|
| 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% |
 _________________
 |
|
| Back to top |
|
 |
1817 Guest
|
Posted: Thu Jul 17, 2008 12:10 am Post subject: |
|
|
.... 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?  |
|
| Back to top |
|
 |
1817 Guest
|
Posted: Thu Jul 17, 2008 12:10 am Post subject: |
|
|
| (i.e. not necessarily if it's a Runned program) |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 1145 Location: The Interwebs
|
Posted: Thu Jul 17, 2008 12:14 am Post subject: |
|
|
| Code: | | WinSet,Transparent,200, ahk_class YOURCLASSHERE |
|
|
| Back to top |
|
 |
1817 Guest
|
Posted: Thu Jul 17, 2008 1:47 am Post subject: |
|
|
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
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?....  |
|
| Back to top |
|
 |
5parx
Joined: 20 Jun 2008 Posts: 11 Location: Lakewood, Colorado
|
Posted: Thu Jul 17, 2008 2:50 am Post subject: Whoa |
|
|
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 |
|
 |
|