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 

make Window invisible

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
thinkstorm



Joined: 17 Aug 2004
Posts: 18

PostPosted: Tue Aug 17, 2004 7:15 pm    Post subject: make Window invisible Reply with quote

pretty straight forward transparent option for ALT+MiddleClick. I only query the ALT key for exiting, so you can release the Middle Button to make things more easy (and to prevent accidential scrolls with the ScrollWheel)

TC
____________________________
Code:
!MButton::
    CoordMode, Mouse, Screen
    MouseGetPos, currentX, currentY, currentWindow
    if currentWindow =
        return
    SetWinDelay, 0
    WinSet, Transparent, 50, ahk_id %currentWindow%
    Loop
    {
        GetKeyState, state, LAlt, P
        if state = U
            break
    }
    WinSet, Transparent, 255, ahk_id %currentWindow%
return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Aug 17, 2004 7:34 pm    Post subject: Reply with quote

I tried it; very nice.

A minor improvement is that you can omit the X and Y output variables if you don't need that info (the help file is wrong, so I changed it to reflect this):
MouseGetPos,,, currentWindow

Also, you might want to throw a "Sleep 10" inside that loop, otherwise it will use quite a lot more CPU time while you're holding down the ALT key.
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 -> Scripts & Functions 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