Jump to content
Sign in to follow this  
xAx

How can I embed autoit GUI in other window

Recommended Posts

SpookMeister

I don't think you can... but maybe I am misunderstanding your intention can you describe it more clearly?


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites
xAx

I want to make window and play mplayer in it but I want to embed this window in an other program (I made it not in autoit)


Abduljabbar Faaiz Al_Kazzazx A x Company islamway.com

Share this post


Link to post
Share on other sites
Xand3r

_WinAPI_SetParent($hWndChild, $hWndParent)


Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites
WideBoyDixon

Share this post


Link to post
Share on other sites
Authenticity

Opt('GuiOnEventMode', 1)

Dim $oEmbedded = ObjCreate('MediaPlayer.MediaPlayer.1')
_ShowElements($oEmbedded)
Dim $hGUI = GUICreate('Test', 500, 400)
Dim $Embedded = GUICtrlCreateObj($oEmbedded, 0, 0, 500, 330)
Dim $Button = GUICtrlCreateButton('Close', 215, 360, 70, 25)
GUICtrlSetOnEvent(-1, '_EXIT')
GUISetOnEvent(-3, '_EXIT')

GUISetState()

While 1
    Sleep(50)
WEnd


Func _EXIT()
    GUIDelete()
    Exit
EndFunc

Func _ShowElements($oObj)
    With $oObj
        .ShowAudioControls = True
        .ShowCaptioning = True
        .ShowControls = True
        .ShowDisplay = True
        .ShowGotoBar = True
        .ShowPositionControls = True
        .ShowStatusBar = True
        .ShowTracker = True
    EndWith
EndFunc

Then you can make a menu bar. You need Object Browser to see what functions, properties, etc.. the object exposes.

Share this post


Link to post
Share on other sites
xAx

For example I want to embed the GUI of Authenticity's sample in the notepade window 'Untitled - Notepad'

Is this possible because I can't make it work.


Abduljabbar Faaiz Al_Kazzazx A x Company islamway.com

Share this post


Link to post
Share on other sites
SmOke_N

For example I want to embed the GUI of Authenticity's sample in the notepade window 'Untitled - Notepad'

Is this possible because I can't make it work.

Look up "AnyGUI", then look at the source code for the functions, you'll see how to embed in other GUIs.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
SmOke_N

Sorry for bothering

Could you make a sample, please?

There are tons of examples in that file. You don't need more than that.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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.