SjaakTV Posted March 16, 2010 Share Posted March 16, 2010 Hi, I want to make a gui. I want a windows program to be forced in this GUI. So when you move the gui you will move the program also. Lets say when I start the script it will force paint in it. So you will have a gui with paint in it. Is this posible? Thnx for your time. Link to comment Share on other sites More sharing options...
JohnOne Posted March 16, 2010 Share Posted March 16, 2010 Donr know much about this, but I would first read up on ObjCreate() ex $oShell = ObjCreate("shell.application") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
SjaakTV Posted March 17, 2010 Author Share Posted March 17, 2010 A example with a program in a GUI would be awesome. I don't realy get the ObjCreate. Link to comment Share on other sites More sharing options...
Valuater Posted March 17, 2010 Share Posted March 17, 2010 straight from help expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Example() ; Simple example: Embedding an Internet Explorer Object inside an AutoIt GUI ; ; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp Func Example() Local $oIE, $GUIActiveX, $GUI_Button_Back, $GUI_Button_Forward Local $GUI_Button_Home, $GUI_Button_Stop, $msg $oIE = ObjCreate("Shell.Explorer.2") ; Create a simple GUI for our output GUICreate("Embedded Web control Test", 640, 580, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) $GUIActiveX = GUICtrlCreateObj ($oIE, 10, 40, 600, 360) $GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30) $GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30) $GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30) $GUI_Button_Stop = GUICtrlCreateButton("Stop", 330, 420, 100, 30) GUISetState() ;Show GUI $oIE.navigate("http://www.autoitscript.com") ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home $oIE.navigate("http://www.autoitscript.com") Case $msg = $GUI_Button_Back $oIE.GoBack Case $msg = $GUI_Button_Forward $oIE.GoForward Case $msg = $GUI_Button_Stop $oIE.Stop EndSelect WEnd GUIDelete() EndFunc ;==>Example use the search in help... its great!!! 8) Link to comment Share on other sites More sharing options...
SjaakTV Posted March 17, 2010 Author Share Posted March 17, 2010 thnx mate.Is there a way to find the ObjCreate("This part") I noticed it is not easy mspaint or something. 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