Yekuro Posted July 30, 2013 Share Posted July 30, 2013 I am working in a New project... But I need to know how to use Send() to an Object $Exp = ObjCreate("Shell.Explorer.2") $ExpGUI = GUICtrlCreateObj($Exp, 320, 8, 449, 417) $Exp.navigate("http://example.net") ^^^^^^^^^^^^^^^^^^^^ This is the object How to send keys to that specific object? ($Exp object) Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 30, 2013 Share Posted July 30, 2013 Have a look at ControlSend in the helpfile. Welcome to the Forum! - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Yekuro Posted July 30, 2013 Author Share Posted July 30, 2013 Have a look at ControlSend in the helpfile. Welcome to the Forum! I can't understand how to use it. (How to fill the boxes) Title <- Users can change it... And I don't know what's the title (How to know the title?) Text <- What to put here? Control ID <- I don't know how to put it ($Exp, $ExpGUI, Exp, ExpGUI...) and... If it's not my web page, how can I know the controls, get the names, or the text of the controls of a input in a page? String <- Ok. Flag <- Ok. Link to comment Share on other sites More sharing options...
DW1 Posted July 30, 2013 Share Posted July 30, 2013 (edited) Welcome to the AutoIt forums Yekuro. What exactly are you trying to accomplish, because based on what I see so far, and assume so far, you will likely be better off using the _IE functions. Take a look in the help file at _IECreate() and the related functions in IE.au3 An example from the help file showing how to set the value of a text input on a webpage: #include <IE.au3> Local $oIE = _IE_Example("form") Local $oForm = _IEFormGetObjByName($oIE, "ExampleForm") Local $oText = _IEFormElementGetObjByName($oForm, "textExample") _IEFormElementSetValue($oText, "Hey! This works!") Edited July 30, 2013 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Yekuro Posted July 30, 2013 Author Share Posted July 30, 2013 (edited) Welcome to the AutoIt forums Yekuro. What exactly are you trying to accomplish, because based on what I see so far, and assume so far, you will likely be better off using the _IE functions. Take a look in the help file at _IECreate() and the related functions in IE.au3 An example from the help file showing how to set the value of a text input on a webpage: #include <IE.au3> Local $oIE = _IE_Example("form") Local $oForm = _IEFormGetObjByName($oIE, "ExampleForm") Local $oText = _IEFormElementGetObjByName($oForm, "textExample") _IEFormElementSetValue($oText, "Hey! This works!") Didn't help. And when I use _IE commands correctly, with #include <IE.au3>, it gives syntax error, and moves me to IE.au3 EDIT : Solved problems with _IE commands. How do I use Send() in a embedded IE? -> _IECreateEmbedded() $Exp = _IECreateEmbedded() $ExpGUI = GUICtrlCreateObj($Exp, 320, 8, 449, 417) _IENavigate($Exp, "http://example.com") Edited July 30, 2013 by Yekuro Link to comment Share on other sites More sharing options...
DW1 Posted July 30, 2013 Share Posted July 30, 2013 My whole point was for you to avoid using send altogether since it is kind of sloppy to be honest. What exactly are you trying to do, and perhaps there is a better solution. As for Send(), you cannot use it with the object like that, it just sends keystrokes as if you typed them yourself, and controlsend() is going to send to a window/control, again not an object like that. We can help you better if you are more clear on what you are trying to accomplish AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 30, 2013 Moderators Share Posted July 30, 2013 Yekuro,As we now know this request is not acceptable under the Forum rules and you are not in position to respond for a while - there seems little point in the thread staying open. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts