Is it possible to make a window transparent and then be able to click through the same window to the underlying matter?
I would like to create a status window that is mostly transparent, but that I can click through.
Thanks in advance.
make a window transparent and click through it
Started by
sam.reckoner
, Jun 28 2008 03:10 PM
10 replies to this topic
#1
-
Posted 28 June 2008 - 03:10 PM
Thanks for your response. But, this doesn't do the click-through part.
WinSet, ExStyle, +0x00000020, ahk_id %hwnd%
#3
-
Posted 08 July 2008 - 01:58 PM
Is the window in the back regularly the same?
because you could send clicks to the window directly by getting the ID... Almost like you would do in games...
because you could send clicks to the window directly by getting the ID... Almost like you would do in games...
#4
-
Posted 08 July 2008 - 02:03 PM
Thanks for your response.
The window I am trying to get this working with scrolls lines of text (error/status messages) approximately twice every second. It's a status window that I would like to keep track of. Making it transparent is very useful, except that I cannot click any of the icons under it. I would like to be able to use the transparency but also to click at the underlying icons. I would like to regain control of this window (i.e. click into it) by using the taskbar, or the window's title bar.
[ Moderator!: Don't top-post ]
The window I am trying to get this working with scrolls lines of text (error/status messages) approximately twice every second. It's a status window that I would like to keep track of. Making it transparent is very useful, except that I cannot click any of the icons under it. I would like to be able to use the transparency but also to click at the underlying icons. I would like to regain control of this window (i.e. click into it) by using the taskbar, or the window's title bar.
[ Moderator!: Don't top-post ]
#5
-
Posted 08 July 2008 - 02:20 PM
Thanks for your response. But, this doesn't do the click-through part.
WinSet, ExStyle, +0x00000020, ahk_id %hwnd%
Well....it does...so maybe test it properly in future :roll:
DetectHiddenWindows, on Gui, 1: +LastFound +AlwaysOnTOp hwnd1 := WinExist() WinSet, ExStyle, +0x00000020, ahk_id %hwnd1% WinSet, Transparent, 100, ahk_id %hwnd1% Gui, 1: Show, w500 h500 Return
#6
-
Posted 08 July 2008 - 03:29 PM
That's right. You have to combine it with WinSet TransparentThanks for your response. But, this doesn't do the click-through part.
WinSet, ExStyle, +0x00000020, ahk_id %hwnd%
; WinSet, Transparent, Off, ahk_id %hWnd% WinSet, ExStyle, +0x00000020, ahk_id %hWnd% WinSet, Transparent, 128, ahk_id %hWnd%
#7
-
Posted 08 July 2008 - 03:54 PM
can the same done to be normal windows like explorers instead of GUI?
#8
-
Posted 08 July 2008 - 04:21 PM
A window is a window. A window is also a GUI. Therefore, yes.
#9
-
Posted 08 July 2008 - 04:39 PM
can the same done to be normal windows like explorers instead of GUI?
Alright lazy pants...why not try it yourself? :wink:
#SingleInstance, Force DetectHiddenWindows, on Hotkey, ~^LButton, ClickThrough, On Return ClickThrough: MouseGetPos, x, y, hwnd WinSet, AlwaysOnTop, On, ahk_id %hwnd% WinSet, Transparent, 100, ahk_id %hwnd% WinSet, ExStyle, +0x00000020, ahk_id %hwnd% Return
#10
-
Posted 08 July 2008 - 04:42 PM
This works great! Beware that if you accidentally do the Ctrl+LButton on the desktop, it will make the entire desktop transparent/click-through, which may require a re-login.
Thanks again for all the great help!
Thanks again for all the great help!
#11
-
Posted 08 July 2008 - 06:03 PM