Jump to content

Embedding possible with autoit?


Recommended Posts

Hey guys, this may sound like a noobish question. But i remember reading a topic about embedding outside applications into an GUI. But is it possible to embed a application into a GUI?. Thanks :)

Edited by Clipper34
Link to comment
Share on other sites

See GuiCtrlCreateObj (and _IECreateEmbedded for an example)

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Hey guys, this may sound like a noobish question. But i remember reading a topic about embedding outside applications into an GUI. But is it possible to embed a application into a GUI?. Thanks :)

If you mean like this then yes.

#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("notepad.exe")
Sleep(4000)
$hw1 = WinGetHandle("Untitled")
WinMove("Untitled", "", 0, 0, 395, 600)
Sleep(300)
$origParent = DllCall("user32.dll", "int", "SetParent", "hwnd", WinGetHandle("Untitled"), "hwnd", WinGetHandle('Parent'))
Sleep(200)

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

    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.
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...