styles3000 Posted July 26, 2009 Share Posted July 26, 2009 How Do I Press This Button.pdf I want to know how can I press this button using a IE functions? Link to comment Share on other sites More sharing options...
BrettF Posted July 26, 2009 Share Posted July 26, 2009 RTFM. Try any of the following: _IEAction() _IELinkClickBy*() Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
styles3000 Posted July 27, 2009 Author Share Posted July 27, 2009 How would I construct a mouseclick using these this info from the info tool? _IEAction("Internet Explorer_Server1","313,195") or should I do this _IEAction("CLASS:Internet Explorer_Server;INSTANCE:1","313,195") What To Use.pdfRTFM. Try any of the following: _IEAction() _IELinkClickBy*() Cheers, Brett Link to comment Share on other sites More sharing options...
BrettF Posted July 27, 2009 Share Posted July 27, 2009 Okay you have no idea. RTFM. In the helpfile. There is an example. Study it, work out how off track you are. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
styles3000 Posted July 27, 2009 Author Share Posted July 27, 2009 The help file doesn't get very detailed with explaining this function..... #include <IE.au3> _IEAction ( ByRef $o_object, $s_action ) could someone fill me in on what "ByRef $o_object " is? I know its an Object variable of an InternetExplorer.Application. But what do I reference to get the click that i want? Link to comment Share on other sites More sharing options...
Juvigy Posted July 28, 2009 Share Posted July 28, 2009 (edited) Check the _IECreate example: #include <IE.au3> $oIE = _IECreate ("www.autoitscript.com") $oIE is the object of the IE . Then you can use something like: $oSubmit = _IEGetObjByName ($oIE, "submitExample") _IEAction ($oSubmit, "click") Edited July 28, 2009 by Juvigy Link to comment Share on other sites More sharing options...
BrettF Posted July 28, 2009 Share Posted July 28, 2009 Hang on, the example(s in this case) for the function aren't detailed? ; ******************************************************* ; Example 1 - Open a browser with the "form" example, get a reference ; to the submit button by name and "click" it. This technique ; of submitting forms is useful because many forms rely on Javascript ; code and "onclick" events on their submit button making _IEFormSubmit() ; not perform as expected ; ******************************************************* ; #include <IE.au3> $oIE = _IE_Example ("form") $oSubmit = _IEGetObjByName ($oIE, "submitExample") _IEAction ($oSubmit, "click") _IELoadWait ($oIE) ; ******************************************************* ; Example 2 - Same as Example 1, except instead of using click, give the element focus ; and then use ControlSend to send Enter. Use this technique when the ; browser-side scripting associated with a click action prevents control ; from being automatically returned to your code. ; ******************************************************* ; #include <IE.au3> $oIE = _IE_Example ("form") $oSubmit = _IEGetObjByName ($oIE, "submitExample") $hwnd = _IEPropertyGet($oIE, "hwnd") _IEAction ($oSubmit, "focus") ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}") ; Wait for Alert window, then click on OK WinWait("Windows Internet Explorer", "ExampleFormSubmitted") ControlClick("Windows Internet Explorer", "ExampleFormSubmitted", "[CLASS:Button; TEXT:OK; Instance:1;]") _IELoadWait ($oIE) Wait how isn't it detailed? You know what the parameters are, there are the variables, but two and two together, search through the help file... >_< Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Avatar007 Posted February 3, 2010 Share Posted February 3, 2010 (edited) Similar questions in details in parameter of "ControlClick": "[CLASS:Button; TEXT:OK; Instance:1;]"? Edited February 3, 2010 by Avatar007 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