seres Posted December 6, 2007 Share Posted December 6, 2007 (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 December 6, 2007 by seres Link to comment Share on other sites More sharing options...
Nahuel Posted December 6, 2007 Share Posted December 6, 2007 WinSetTrans() Link to comment Share on other sites More sharing options...
herewasplato Posted December 6, 2007 Share Posted December 6, 2007 (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 behindI'm not sure what will... Edited December 6, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Nahuel Posted December 6, 2007 Share Posted December 6, 2007 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 behindI'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. Link to comment Share on other sites More sharing options...
martin Posted December 6, 2007 Share Posted December 6, 2007 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. Link to comment Share on other sites More sharing options...
Nahuel Posted December 6, 2007 Share Posted December 6, 2007 I thought he wanted the gui to be transparent when he moves the mouse off of it? Link to comment Share on other sites More sharing options...
DW1 Posted December 6, 2007 Share Posted December 6, 2007 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? AutoIt3 Online Help Link to comment Share on other sites More sharing options...
weaponx Posted December 6, 2007 Share Posted December 6, 2007 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() Link to comment Share on other sites More sharing options...
DW1 Posted December 6, 2007 Share Posted December 6, 2007 @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 AutoIt3 Online Help Link to comment Share on other sites More sharing options...
jennico Posted December 24, 2007 Share Posted December 24, 2007 larry did it brilliantly:http://www.autoitscript.com/forum/index.ph...st&p=441991j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now