DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Click-through window  (Read 4,485 times)

patchett

  • Participant
  • Joined in 2010
  • *
  • Posts: 1
IDEA: Click-through window
« on: June 24, 2010, 01:13 PM »
My idea for a simple utility is one which will lock a window from input without locking the window itself. With WinLock (also on this site) clicking a locked window results in no action (other than a sound indicating that the action cannot be performed), this utility will result in, shall we say, a ghost window which will allow clicks to pass through to the window below it.

In application, this could be used with WinWarden to create an always-on-top transparent window which can be clicked through to the windows below.

I do not believe this has been suggested before, though I could be wrong.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: Click-through window
« Reply #1 on: June 24, 2010, 11:24 PM »
This is actually really easy to do using AutoHotkey.  Consider the following hotkeys:

Code: (autohotkey)
#1:: ; Win-1 hotkey
{
    WinSet, AlwaysOnTop, On      , A
    WinSet, ExStyle    , +0x80020, A
    WinSet, Transparent, 125     , A
}
Return


#2:: ; Win-2 hotkey
{
    WinSet, AlwaysOnTop, Off     , A
    WinSet, ExStyle    , -0x80020, A
    WinSet, Transparent, 255     , A
}
Return

Focus the window you want and press Win-1.  To reverse it, focus the window using the taskbar or alt-tab (since you can't click it) and press Win-2.

Original address: https://www.donationcoder.com/forum/index.php?topic=23198.0