Jump to content

Recommended Posts

Posted

i dont think ill have much luck with this maybe MSDN will have something about it .... (of course not for autoIt but i'm sure someone could figure it out )

[center][/center]

  • Moderators
Posted

GUICtrlCreateTreeView

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

GUICtrlCreateTreeView

umm create treeview??? not that control here is what i meant, i found it....

based on Senton-Bomb's func

#include <GUIConstants.au3>
$big = GuiCreate( "Big Win", 988,748, -1, -1 )
GUISetState()
$inside = GuiCreate( "1", 982, 200, 0, 0, Default, $WS_EX_TOOLWINDOW )
GUISetState()
$inside2 = GuiCreate( "2", 538, 200, 0, 222, Default, $WS_EX_TOOLWINDOW )
GUISetState()
_SetParent( "Inside Window", "Big Win" )
_SetParent( "shit", "Big Win" )

While 1 
WEnd

#cs ----------------------------------------------------------------------------
   
    AutoIt Version: 3.2.4.9
    Author:         Senton-Bomb
   
        $TitleP: The title of the parent window
        $TitleC: The title of the child window
       
        If a window doesn't exist, It returns -1, otherwise it returns 1
   
    Script Function:
    Wrapper for the "SetParent" dllcall + Example.
   
#ce ----------------------------------------------------------------------------

; Script Stizzle - Add your codeizzle

Func _SetParent($TitleP, $TitleC)
    If WinExists($TitleP) Then
        If WinExists($TitleC) Then
            $HwndP = WinGetHandle($TitleP)
            $HwndC = WinGetHandle($TitleC)
            $user32 = DllOpen("user32.dll")
            DllCall($user32, "str", "SetParent", "HWnd", $HwndP, "HWnd", $HwndC)
            Return 1
        Else
            Return -1
        EndIf
    Else
        Return -1
    EndIf
EndFunc   ;==>_SetParent

[center][/center]

Posted

While 1

WEnd

needs a sleep() or it will burn your CPU

While 1

Sleep(10)

WEnd

8)

actually it needs to say DllClose( $user32 )

then it doesn't eat cpu power

[center][/center]

Posted

No... The Sleep is needed, otherwise your CPU will get eaten by nothing. The sleep adds a moment of pause (well duh!) that slows the process down, therefore eating less CPU.

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
×
×
  • Create New...