AutoHotkey Community

It is currently May 26th, 2012, 3:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: totally Invisible Gui
PostPosted: April 21st, 2008, 3:00 pm 
Offline

Joined: June 23rd, 2007, 2:44 am
Posts: 136
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 21st, 2008, 3:33 pm 
Offline

Joined: June 27th, 2006, 4:36 pm
Posts: 182
WinSet, Transparent, 100, <window title>

150 being the transparency level, 1-255.

_________________
Image Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 22nd, 2008, 1:32 am 
Offline

Joined: June 23rd, 2007, 2:44 am
Posts: 136
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 22nd, 2008, 1:46 am 
Set WS_EX_TRANSPARENT ExStyle.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 22nd, 2008, 2:32 am 
Offline

Joined: April 9th, 2008, 8:46 am
Posts: 35
Location: Espoo, Finland
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 22nd, 2008, 6:02 am 
AutoHotkey has a built-in option for this.
Code:
Gui, +E0x20 +AlwaysOnTop +LastFound

Better use it together with
Code:
WinSet, Transparent


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Bing [Bot], Exabot [Bot], Yahoo [Bot] and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group