Sign in to follow this  
Followers 0
SlowlyDead

Integrate an Interface in my Gui

7 posts in this topic

Hi!

I would like to integrate the GUI of an existing non-autoit program in my GUI.

E.g. I would like to have the windows-cmd in an autoitgui.

Is there any way ???

Greetings

SlowlyDead

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi!

I would like to integrate the GUI of an existing non-autoit program in my GUI.

E.g. I would like to have the windows-cmd in an autoitgui.

Is there any way ???

Greetings

SlowlyDead

Welcome to the AutoIt forums SlowlyDead :) (A lot of you about tonight)

Here is an example of a way

#include <guiconstants.au3>
#include <constants.au3>

$hGui1 = GUICreate('Parent',800,600,100,100, BitOr($WS_POPUP,$WS_SIZEBOX,$GUI_SS_DEFAULT_GUI,$WS_CLIPCHILDREN))
$iBtn1 = GUICtrlCreateButton("fit",560,10,100,21,$WS_CLIPSIBLINGS)
$hLV1 = GUICtrlCreateListView("lvexample",410,50,300,300,$WS_CLIPSIBLINGS)
GUISetState()
;Run("cmd.exe")
Run("notepad.exe")
Sleep(4000)
WinMove("Untitled","",0,0,395,600)
Sleep(300)
DllCall("user32.dll", "int", "SetParent", "hwnd", WinGetHandle("Untitled"), "hwnd", WinGetHandle('Parent'))
Sleep(200)

While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then Exit
    If $msg = $iBtn1 Then WinMove("Untitled","",0,0,295,470)
    
WEnd
Edited by martin

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

Thats not what I meant at all.

I wanted to integrad the cmd like an Editbox in an Autoit-Gui.

Greetings

SlowlyDead

Share this post


Link to post
Share on other sites

Thats not what I meant at all.

I wanted to integrad the cmd like an Editbox in an Autoit-Gui.

Greetings

SlowlyDead

I don't understand. You said in your first post

I would like to integrate the GUI of an existing non-autoit program in my GUI.

So that is what I showed.

Do you mean you simply want to have an Edit in a gui?

(I think I'm lost at the moment.)


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

My english is hard to understand :-(

I want to add an gui of a programm, like the cmd-windows, in the gui of my autoit program in that way i add an e.g. an editbox in my gui.

Greets

SlowlyDead

Share this post


Link to post
Share on other sites

My english is hard to understand :-(

I want to add an gui of a programm, like the cmd-windows, in the gui of my autoit program in that way i add an e.g. an editbox in my gui.

Greets

SlowlyDead

You want to make command prompt an object that is within your GUI?

Or you just want an edit box inside of your GUI?


children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :)

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  
Followers 0