xAx Posted March 31, 2009 Share Posted March 31, 2009 Hi How can I embed autoit GUI in other window like notepad? Thanks Abduljabbar Link to comment Share on other sites More sharing options...
SpookMeister Posted March 31, 2009 Share Posted March 31, 2009 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] Link to comment Share on other sites More sharing options...
xAx Posted March 31, 2009 Author Share Posted March 31, 2009 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) Link to comment Share on other sites More sharing options...
Xand3r Posted March 31, 2009 Share Posted March 31, 2009 _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 Link to comment Share on other sites More sharing options...
xAx Posted April 1, 2009 Author Share Posted April 1, 2009 Sorry but _WinAPI_SetParent() is undefined function. Link to comment Share on other sites More sharing options...
WideBoyDixon Posted April 1, 2009 Share Posted April 1, 2009 http://www.autoitscript.com/autoit3/docs/l...I_SetParent.htmPerhaps you're missing:#include <WinAPI.au3> [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
Authenticity Posted April 1, 2009 Share Posted April 1, 2009 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. Link to comment Share on other sites More sharing options...
xAx Posted April 1, 2009 Author Share Posted April 1, 2009 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 1, 2009 Moderators Share Posted April 1, 2009 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. Link to comment Share on other sites More sharing options...
xAx Posted April 3, 2009 Author Share Posted April 3, 2009 Sorry for bothering Could you make a sample, please? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 3, 2009 Moderators Share Posted April 3, 2009 Sorry for botheringCould 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. 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