babylone99 Posted March 3, 2012 Posted March 3, 2012 Hi, Purpose: i want to click on this button with _IE functions. I don't want use mouse functions. Problem : this button isn't in a form and it doesn't have id or name so i can't use _IEGetObjByXX functions. <button type="button" value="..." class="build" onclick="window.location.href = 'dorf1.php?a=5&c=96be63'; return false;"> Thanks in advance
DaleHohm Posted March 3, 2012 Posted March 3, 2012 $oButton = _IETagnameGetCollection($oIE, "button", your-0-based-instance-number) _IEAction($oButton, "click") 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
6105 Posted March 3, 2012 Posted March 3, 2012 That can help: $oForm = _IEFormGetObjByName ($oIE, $form_name) ; if don't have name: $oForm = _IEFormGetCollection($oIE, 0) $oQuery3 = _IEFormElementGetObjByName ($oForm, 'button_name') $Action = _IEAction($oQuery3,"click") [center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]
babylone99 Posted March 3, 2012 Author Posted March 3, 2012 (edited) Thanks guys that's working ! I don't know why i haven't tried this way Edited March 3, 2012 by babylone99
6105 Posted March 5, 2012 Posted March 5, 2012 You are welcome [center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]
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