Jump to content

GUI background that is see-through


Go to solution Solved by ghost11996,

Recommended Posts

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 by Maclotro
Link to comment
Share on other sites

  • Solution

Hello Maclotro

Welcome to Autoit Forum :shifty:

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]

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...