cypher175 Posted July 23, 2009 Posted July 23, 2009 what are all the methods to click OK on this IE window.??
cypher175 Posted July 24, 2009 Author Posted July 24, 2009 what function would be needed to click OK on the lil IE window that pops up with this code..?? #include <IE.au3> $oIE = _IE_Example ("form") $oSubmit = _IEGetObjByName ($oIE, "submitExample") _IEAction ($oSubmit, "click")
DaleHohm Posted July 24, 2009 Posted July 24, 2009 See the second example for _IEAction Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
cypher175 Posted July 27, 2009 Author Posted July 27, 2009 is there anyway to send a "ControlClick" to both the submit button & the lil JS pop up window OK button in this code..?? instead of using either: _IEAction($oSubmit, "click") or ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")..?? or is ControlSend the only function that can return control your code when using AU3's browser-side scripting associated with a click action..?? #include <IE.au3> $oIE = _IE_Example ("form") $oSubmit = _IEGetObjByName ($oIE, "submitExample") _IEAction($oSubmit, "click")
DaleHohm Posted July 28, 2009 Posted July 28, 2009 is there anyway to send a "ControlClick" to both the submit button & the lil JS pop up window OK button in this code..?? instead of using either: _IEAction($oSubmit, "click") or ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")..?? or is ControlSend the only function that can return control your code when using AU3's browser-side scripting associated with a click action..?? #include <IE.au3> $oIE = _IE_Example ("form") $oSubmit = _IEGetObjByName ($oIE, "submitExample") _IEAction($oSubmit, "click") _IEAction is intertwined with the DOM and with the Javascript code and can pause the script... ControlClick is not. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
cypher175 Posted July 29, 2009 Author Posted July 29, 2009 so when the ControlClick Sends a mouse click command to a given control. is it actually temporarily commandeering your mouse to perform the click that is needed, or is it simulating a mouse click on a given control thus relieving your mouse from ever being interrupted from the normal users control..??
Juvigy Posted July 30, 2009 Posted July 30, 2009 it doesnt "move" the mouse if that is you are asking. It is the same as if you had manually moved the mouse and clicked on the button.
cypher175 Posted August 7, 2009 Author Posted August 7, 2009 it doesnt "move" the mouse if that is you are asking. It is the same as if you had manually moved the mouse and clicked on the button. So what would the code look like to send a ControlClick to a IE Element or Object such as a "Submit Button"..?? something like this or what exactly..?? #include <IE.au3> $oIE = _IE_Example ("form") $oSubmit = _IEGetObjByName ($oIE, "submitExample") _ControlClick($oSubmit) ;<----------???????
DaleHohm Posted August 7, 2009 Posted August 7, 2009 There is an example in the helpfile for _IEAction that shouws you how to do this. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble
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