Jump to content
Sign in to follow this  
theAutoitSpammer

enbed application window in a GUI--[SOLVED]

Recommended Posts

theAutoitSpammer

i like to embed another application window into a GUI so i can

add extra controls. is this possible? can you point me in the right direction?

thanks in advance ^_^

Edited by alram

Share this post


Link to post
Share on other sites
martin

i like to embed another application window into a GUI so i can

add extra controls. is this possible? can you point me in the right direction?

thanks in advance ^_^

Search in Example scripts for ANYGUI which lets you add controls to another application.

You can embed another window in your own gui like this

$hGui1 = GUICreate('Just a Way To End SCript', 1100,800)
GUISetState()

Run("notepad.exe")
WinWait("Untitled","",10)
$hw1 = WinGetHandle("Untitled")
WinMove($hw1, "", 0, 0, 400, 300);the position of notepad will be the relative positions in the our gui
Sleep(100)
$origParent = DllCall("user32.dll", "int", "SetParent", "hwnd", $hw1, "hwnd",$hGui1);  WinGetHandle("Program Manager"))

While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then
       ;set Notepad back To Original parent
        DllCall("user32.dll", "int", "SetParent", "hwnd", $hw1, "hwnd", $origParent[0])
        Exit
    EndIf
    
WEnd

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
theAutoitSpammer

Thanks Martin, that's exactly what I was looking for ;)

I'll try ANYGUI maybe that's a better solution ^_^

Thanks again

Al

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.