Login Register






Transparent Console Application! filter_list
Author
Message
RE: Transparent Console Application! #5
You can also make the console looking transparent using this method:

PHP Code:
Imports System.Diagnostics Public Class Glass Private Declare Sub DwmEnableBlurBehindWindow Lib "dwmapi.dll" ( _ ByVal hwnd As IntPtr, _ ByRef blurBehind As DWM_BLURBEHIND) Private Enum DwmBlurBehindDwFlags DWM_BB_ENABLE = &H1 DWM_BB_BLURREGION = &H2 DWM_BB_TRANSITIONONMAXIMIZED = &H4 End Enum Private Structure DWM_BLURBEHIND Public dwFlags As DwmBlurBehindDwFlags Public fEnable As Boolean Public hRgnBlur As IntPtr Public fTransitionOnMaximized As Boolean End Structure Shared Sub Main() Dim P As New Process Dim ArgString As String = String.Empty Dim eArgs() As String = Environment.GetCommandLineArgs If eArgs.Length > 1 Then For i As Integer = 1 To eArgs.Length - 1 ArgString &= eArgs(i) & " " Next End If P.StartInfo.FileName = "Cmd.exe" P.StartInfo.Arguments = ArgString P.Start() Threading.Thread.Sleep(350) DwmEnableBlurBehindWindow(P.MainWindowHandle, New DWM_BLURBEHIND With {.dwFlags = DwmBlurBehindDwFlags.DWM_BB_ENABLE, .fEnable = True}) End Sub End Class

Credits: nathan72389 from HF

Reply





Messages In This Thread