| View previous topic :: View next topic |
| Author |
Message |
viciouskinid
Joined: 23 Jun 2007 Posts: 136
|
Posted: Mon Apr 21, 2008 3:00 pm Post subject: totally Invisible Gui |
|
|
| how do I set a Guito be totally invisible. I want to see it but I want it to be invisible my mouse. this will allow me to set it to semi-transparent and drag windows behind it. |
|
| Back to top |
|
 |
Clash
Joined: 27 Jun 2006 Posts: 182
|
Posted: Mon Apr 21, 2008 3:33 pm Post subject: |
|
|
WinSet, Transparent, 100, <window title>
150 being the transparency level, 1-255. _________________
 |
|
| Back to top |
|
 |
viciouskinid
Joined: 23 Jun 2007 Posts: 136
|
Posted: Tue Apr 22, 2008 1:32 am Post subject: |
|
|
| yeah that is what I have done but if the GUI covers the screen you cannot click, move... any of the other windows on the desktop. I want to have the faded/dimmed effect with Transparent =150 but still use the computer. |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Apr 22, 2008 1:46 am Post subject: |
|
|
| Set WS_EX_TRANSPARENT ExStyle. |
|
| Back to top |
|
 |
orbik
Joined: 09 Apr 2008 Posts: 25 Location: Espoo, Finland
|
Posted: Tue Apr 22, 2008 2:32 am Post subject: |
|
|
What Guest is trying to say here (though lacking in comprehension) is that AutoHotkey doesn't have that function built in but you need to directly call Win32 API functions GetWindowLong and SetWindowLong with DllCall to first retrieve the GWL_EXSTYLE (= -20) value of your target window, then turn on the bit WS_EX_TRANSPARENT (= 0x20) and then set the new value back.
Use WinExist() after Gui +LastFound to get the gui window's handle (HWND)
The API functions are documented in msdn:
http://msdn2.microsoft.com/en-us/library/ms674871.aspx
Read the manual and search these forums for examples using DllCall. (I'm too tired to write an example right now) |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Apr 22, 2008 6:02 am Post subject: |
|
|
AutoHotkey has a built-in option for this.
| Code: | | Gui, +E0x20 +AlwaysOnTop +LastFound |
Better use it together with
| Code: | | WinSet, Transparent |
|
|
| Back to top |
|
 |
|