Sign in to follow this  
Followers 0
seres

window transparent

10 posts in this topic

#1 ·  Posted (edited)

hello. how do i create a window that is transparent and if i click in it pass the window and give a click to the one behind}

i search in the help but i dont find an answer here is my code, but i cant get it to click the window behind it

#include <GUIConstants.au3>

GUICreate("", 611, 403, 190, 128, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST,$WS_EX_TRANSPARENT))

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

EndSwitch

WEnd

thanks

Edited by seres

Share this post


Link to post
Share on other sites



WinSetTrans()

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

WinSetTrans()

I do not think that WinSetTrans will meet this part of the OP's request:

and if i click in it pass the window and give a click to the one behind

I'm not sure what will...

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

I do not think that WinSetTrans will meet this part of the OP's request:

and if i click in it pass the window and give a click to the one behind

I'm not sure what will...

But isn't that enough information? Why give him the whole script? The rest of what he wants can be easily figured out.

Share this post


Link to post
Share on other sites

But isn't that enough information? Why give him the whole script? The rest of what he wants can be easily figured out.

Are you sure. Doesn't a transparent window in AutoIt make all its components transparent as well?

In Delphi, which I know a bit about, you can have a transparent window and have controls on it which are not transparent. When you click on the tranparent parts you are of course interacting with the windows which you see behind. Although I can do that easily in Delphi I have no idea how to do it in AutoIt, but maybe that's what's wanted.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

I thought he wanted the gui to be transparent when he moves the mouse off of it?

Share this post


Link to post
Share on other sites

I remember something called GUIhole that would put a "hole" in your gui.... perhaps this could be modified to work.

I think however you tackle it you will most likely need to put all of your non transparent controls in a seperate GUI than the transparent part.

what kind of controls do you have that need to be fully visable?

Share this post


Link to post
Share on other sites

I would just capture the coordinates where the mouse is clicked and maybe use ControlClick on the window behind.

Maybe if ControlClick() doesn't work you can briefly hide the window and just use MouseClick()

Share this post


Link to post
Share on other sites

@weaponX, I was working on an example script pretty much the same as you were suggesting, but the Hide Show flags take too long... looks sloppy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0