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 

totally Invisible Gui

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
viciouskinid



Joined: 23 Jun 2007
Posts: 136

PostPosted: Mon Apr 21, 2008 3:00 pm    Post subject: totally Invisible Gui Reply with quote

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
View user's profile Send private message
Clash



Joined: 27 Jun 2006
Posts: 182

PostPosted: Mon Apr 21, 2008 3:33 pm    Post subject: Reply with quote

WinSet, Transparent, 100, <window title>

150 being the transparency level, 1-255.
_________________
Back to top
View user's profile Send private message
viciouskinid



Joined: 23 Jun 2007
Posts: 136

PostPosted: Tue Apr 22, 2008 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Tue Apr 22, 2008 1:46 am    Post subject: Reply with quote

Set WS_EX_TRANSPARENT ExStyle.
Back to top
orbik



Joined: 09 Apr 2008
Posts: 25
Location: Espoo, Finland

PostPosted: Tue Apr 22, 2008 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Tue Apr 22, 2008 6:02 am    Post subject: Reply with quote

AutoHotkey has a built-in option for this.
Code:
Gui, +E0x20 +AlwaysOnTop +LastFound

Better use it together with
Code:
WinSet, Transparent
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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