theAutoitSpammer Posted April 27, 2009 Share Posted April 27, 2009 (edited) 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 April 28, 2009 by alram Link to comment Share on other sites More sharing options...
martin Posted April 27, 2009 Share Posted April 27, 2009 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. Link to comment Share on other sites More sharing options...
theAutoitSpammer Posted April 28, 2009 Author Share Posted April 28, 2009 Thanks Martin, that's exactly what I was looking for I'll try ANYGUI maybe that's a better solution Thanks again Al Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now