Jump to content

Recommended Posts

Posted

Hello, how can I embed a notepad window in my GUI?

$np = Run("notepad.exe")

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $bot = GUICreate("AutoIT bot", 226, 126, -1, -1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
         Case $GUI_EVENT_CLOSE
            Exit
            
    EndSwitch
WEnd

 

Posted

If you google "Embedding possible with AutoIt" there should be a post by Martin with a example script for embedding notepad in a GUI.

Posted

Thanks, it worked. I wanted to have a text field in my GUI but the normal textbox doesn't have that many options so I wanted to embed a notepad window. But is it possible to have them both active? So notepad could act like a text box in the GUI instead of another window.

Posted

Take a look here:

 

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...