Jump to content

Creating a Message Only Window


WSCPorts
 Share

Recommended Posts

a message Only window is a hidden window that can be found by normal means and will not show if @sw_Show sent to it

#include <GuiConstants.au3>
Const $Only_Msgs = 0xfffffffd

Func GetParent($oHwnd)
    $User32 = DllOpen("User32.dll")
    $oParent = DllCall($User32, "hwnd", "GetParent", "hwnd", $oHwnd)
    Return $oParent
    DllClose($User32)
EndFunc

Func SetParent($oHwnd, $nHwnd)
    $User32 = DllOpen("User32.dll")
    $Parent = DllCall($User32, "hwnd", "SetParent", "hwnd", $oHwnd, "hwnd", $nHwnd)
    Return $Parent
    DllClose($User32)
EndFunc

$h_MsgWnd = GUICreate("Unseen Message Window", 100, 100, 440, 440)
SetParent($h_MsgWnd, $Only_Msgs)
GUISetState(@SW_SHOW, $h_MsgWnd); test iT
while(1)
$GuiMsg = GuiGetMsg()
Select 
Case $GuiMsg = $Gui_Event_Close
Exit
EndSelect
Wend

Can anyone think of a use for this ?

...

Edited by WSCPorts
http://www.myclanhosting.com/defiasVisit Join and contribute to a soon to be leader in Custumized tools development in [C# .Net 1.1 ~ 2.0/C/C++/MFC/AutoIt3/Masm32]
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...