MacScript Posted June 21, 2014 Posted June 21, 2014 (edited) HI all, I am new to coding. I have a gui popup that has some buttons and a GUICtrlCreateEdit field in it. I need the background color of most (maybe except buttons) to be complete clear. so that the text in the edit field looks like it is just floating (or imprinted) on whatever application is behind it. The only stuff that would have a different color then the application behind the popup would be the color of the font in the edit field. if this makes a difference, my gui also has a GUICtrlCreateTab in it.. And yes I spent the last couple days looking on forums but have not found what I am looking for. Maybe I am using the wrong keywords. Thanks all for any help Edited June 21, 2014 by Maclotro
Solution ghost11996 Posted June 21, 2014 Solution Posted June 21, 2014 Hello Maclotro Welcome to Autoit Forum You can use the search on forum page with "transparent gui" keyword This is what you want ? #include <WinAPI.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $st1 = $WS_POPUP $st2 = BitOR($WS_EX_LAYERED,$WS_EX_TOOLWINDOW,$WS_EX_TOPMOST,$WS_EX_LAYERED) $hMain = GUICreate("Transparency Window",600,400,-1,-1,$st1,$st2) $edit = GUICtrlCreateEdit("Edit",0,0,600,50) $button1 = GUICtrlCreateButton("Button1",0,50,50,50) _WinAPI_SetLayeredWindowAttributes($hMain, 0xABCDEF, 255) GUISetBkColor(0xABCDEF) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $button1 Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd [color=rgb(255,0,0);]C[/color][color=rgb(255,140,0);]a[/color][color=rgb(255,215,0);]n[/color] [color=rgb(255,255,0);]i[/color] [color=rgb(175,238,238);]e[/color][color=rgb(0,255,255);]a[/color][color=rgb(64,224,208);]t[/color] [color=rgb(0,0,205);]S[/color][color=rgb(0,0,255);]i[/color][color=rgb(0,0,128);]g[/color][color=rgb(75,0,130);]n[/color][color=rgb(128,0,128);]at[/color][color=rgb(238,130,238);]u[/color][color=rgb(221,160,221);]r[/color][color=rgb(230,230,250);]e[/color] [color=rgb(0,255,0);]?[/color] :ermm: [color=rgb(0,255,0);]Project: Mini Youtube BETA[/color]
MacScript Posted June 21, 2014 Author Posted June 21, 2014 Hi Ghost Yes the main gui is clear(see thru). But the GUICtrlCreateEdit field still has a white background. I am looking for the entire thing to be clear. Basically I am looking to create a scrolling text window in it. But can't afford to loose a lot of my overall view of the application this popup is over top of. So if I can make most of the gui (if not all) see thru other then the text inside the edit field that be great. Thanks for your help, and I will try those keywords.
MacScript Posted June 21, 2014 Author Posted June 21, 2014 Thanks for you answer, I was able to get this to work.
careca Posted July 31, 2014 Posted July 31, 2014 Mind sharing how you solved it? Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
MacScript Posted August 1, 2014 Author Posted August 1, 2014 HI Careca - Look at the post that is marked Answered and just add in changing the background color of the edit control for transparency-> GUICtrlSetBkColor($edit, 0xABCDEF)
careca Posted August 2, 2014 Posted August 2, 2014 Thank you. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
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