Arclite86 Posted September 18, 2014 Share Posted September 18, 2014 (edited) I need to click this button <td class="x-btn-mc"><em class="" unselectable="on"><button class="x-btn-text " type="button" style="position: relative; width: 49px;" tabindex="0" aria-describedby="x-auto-5" aria-disabled="false">Next<img onload="this.__gwtLastUnhandledEvent="load";" src="http://tweepi.com/js/tweepigxt/clear.cache.gif" style="width: 16px; height: 16px; position: absolute; left: 0.15625px; top: 0px; background: url(http://tweepi.com/js/tweepigxt/67791A54F68E6C387B9AEF4E96FFB252.cache.png) -274px 0px no-repeat;" border="0" role="presentation" class=" x-btn-image"></button></em></td> with autoit or with javascript Like: document.getElementsByid('x-auto-51').click() ;doesnt work document.getElementsByClassName('x-btn-text ').click() ;doesnt work can somebody help me with this one please Edited September 18, 2014 by Arclite86 Link to comment Share on other sites More sharing options...
MikahS Posted September 18, 2014 Share Posted September 18, 2014 Use _IEAction() You'll need to get the obj first though. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
JohnOne Posted September 18, 2014 Share Posted September 18, 2014 Where are you getting 'x-auto-51' from? 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...
MikahS Posted September 18, 2014 Share Posted September 18, 2014 (edited) aria-describedby="x-auto-5" I have no clue either.. Edited September 18, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Arclite86 Posted September 18, 2014 Author Share Posted September 18, 2014 Im only using firefox because some features dont work in IE (like:Greacemonkey) I found "x-auto-51" in firefox inspector in the extra info I also tried document.getElementsByClassName('x-auto-5').click() and document.getElementsByid('x-auto-5').click() but that dint work either does somebody know the solution? Link to comment Share on other sites More sharing options...
BrewManNH Posted September 18, 2014 Share Posted September 18, 2014 Post your script. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Arclite86 Posted September 18, 2014 Author Share Posted September 18, 2014 (edited) Post your script. This is the part where its about With autoit _FFOpenURL("http://tweepi.com/tools/flush#40") _FFLoadWait() $oButton2 = _FFXPath("//input [@type='button']") ;pushed a button with Greacemonkey _FFClick($oButton2) _FFLoadWait() Sleep(1000) $oButton3 = _FFXPath("//td [@class='x-btn-mc']") _FFClick($oButton3) ; trying to push next button (on the page) _FFOpenURL("http://tweepi.com/tools/flush#60") ; when I go to another page I get an error Creating extra button on the page with Greacemonkey // ==UserScript== // @name next // @namespace tweepi // @description tweepi6 // @include http://tweepi.com/* // @version 1 // @grant none // ==/UserScript== function myFunction () { document.getElementsByClassName('x-btn-text ').click() } var input=document.createElement("input"); input.type="button"; input.id="button888"; input.class="button"; input.value="Button888"; input.onclick = myFunction; document.body.appendChild(input); When I push this button manual nothing happens. I dont know if this is the right javascript command? Edited September 18, 2014 by Arclite86 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