How do I make an Auto Button Clicker?

465 views
Skip to first unread message

Vitae

unread,
Apr 22, 2008, 10:27:07 PM4/22/08
to greasemonkey-users
I have something for NeoPets that constantly presses 2 buttons when
they come up.

var allInput, thisInput, allImg, thisImg;
allInput = document.evaluate(
'//input[@value]',
document,
null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < allInput.snapshotLength; i++) {
thisInput = allInput.snapshotItem(i);
switch (thisInput.value) {
// 1st page
case 'Head Shot':
thisInput.click();
break;
case 'New Game':
thisInput.click();
break;
default:
}
}


SO for another game (http://www.intellijeu.com/MMA/index.aspx) I
figured that all I had to do was change the button names:

case 'Start Fight':
thisInput.click();
break;
case 'Rematch':
thisInput.click();
break;
default:


This don't work. I've tried checking the helps and other scripts, but
for the life of me, I can't figure this out :(
Help??

Vitae

unread,
Apr 22, 2008, 10:30:49 PM4/22/08
to greasemonkey-users
Oh and I changed the directs and all that. Also, if it helps any, the
site don't work with FireFox, so I am using IE Tab for Firefox, and am
using both:
http://www.intellijeu.com/MMA/*
chrome://ietab/content/reloaded.html?url=http://www.intellijeu.com/MMA/*

Anthony Lieuallen

unread,
Apr 22, 2008, 11:19:22 PM4/22/08
to greasemon...@googlegroups.com
On 4/22/2008 10:30 PM, Vitae wrote:
> ... the site don't work with FireFox, so I am using IE Tab ...

In the immortal words of Adam Savage, "Well, there's your problem!"

GM is a Firefox extension. It does not operate in IE. Even if you've
used something else to load IE inside the FF window, it's still IE.

Vitae

unread,
Apr 23, 2008, 12:15:09 AM4/23/08
to greasemonkey-users
Dang :(
Thought it was something ELSE that I was missing.

Tested it with an other button in neopets. changed it to IE, used IE
tabs to always open that page as IE, and added the whole chrome://
stuff, and yeah, didn't work, but worked fine when it was as normal
firefox.
Didn't know that it had to BE FF, just IN FF...*sigh* dang..

There aint Greasemonkey for IE is there? *grin*

Tod Beardsley

unread,
Apr 24, 2008, 11:40:39 AM4/24/08
to greasemon...@googlegroups.com
I don't suppose you've tried GreaseMonkIE? I don't know anything about
it other than the cute name and the URL:

http://www.daishar.com/blog/archives/2005/03/greasemonkey_fo.html

--
to...@planb-security.net | ICQ: 335082155 | Note: Due to Google's
privacy policy <http://tinyurl.com/5xbtl> and the United States'
policy on electronic surveillance <http://tinyurl.com/muuyl>,
please do not IM/e-mail me anything you wish to remain secret.

esquifit

unread,
Apr 24, 2008, 3:29:11 PM4/24/08
to greasemon...@googlegroups.com
Take a look at the following GM 'clones' for IE. There first two are probably a little outdated by now, I do not now for sure. 

Trixie
http://www.bhelpuri.net/Trixie/

Get Turnabout :: Reify Turnabout
http://www.reifysoft.com/turnabout.php

IE7Pro
http://www.ie7pro.com/
http://www.iescripts.org/help/index.html



On Thu, Apr 24, 2008 at 5:40 PM, Tod Beardsley <to...@planb-security.net> wrote:

I don't suppose you've tried GreaseMonkIE? I don't know anything about
it other than the cute name and the URL:

http://www.daishar.com/blog/archives/2005/03/greasemonkey_fo.html


On Tue, Apr 22, 2008 at 11:15 PM, Vitae <vita...@gmail.com> wrote:
>
[snip]

Vitae

unread,
Apr 26, 2008, 11:21:29 PM4/26/08
to greasemonkey-users
Found a work around on this :-)
Installed a program called Proxy Switcher Standard. It allows you to
fake what browser you are using. So the site that I need to use now
actually works in FireFox because it tells the site that it's IE6
(thing don't announce IE7, but that's okay) and my script works :-)
esquifit, I checked out those 3, and damned if i know how to even
write the scipts for them. I couldn't find anything that just said,
"This clicks a button, dumbass" but now i don't need to worry ;-)

Thanks for the help that every tried to give me. it was much
appreciated.

On Apr 24, 3:29 pm, esquifit <esqui...@googlemail.com> wrote:
> Take a look at the following GM 'clones' for IE. There first two are
> probably a little outdated by now, I do not now for sure.
>
> Trixiehttp://www.bhelpuri.net/Trixie/
>
> Get Turnabout :: Reify Turnabouthttp://www.reifysoft.com/turnabout.php
>
> IE7Prohttp://www.ie7pro.com/http://www.iescripts.org/help/index.html
>
> On Thu, Apr 24, 2008 at 5:40 PM, Tod Beardsley <t...@planb-security.net>
> wrote:
>
>
>
>
>
> > I don't suppose you've tried GreaseMonkIE? I don't know anything about
> > it other than the cute name and the URL:
>
> >http://www.daishar.com/blog/archives/2005/03/greasemonkey_fo.html
>

esquifit

unread,
Apr 27, 2008, 5:57:45 AM4/27/08
to greasemon...@googlegroups.com
Glad to hear that you solved your problem. In case you are interested
in faking your browser's identity, there is a Firefox extension for
this [1]. Of course it only works with Firefox; on the other hand it
is open source, free (as in beer) and cross-platform.

[1] User Agent Switcher
https://addons.mozilla.org/en-US/firefox/addon/59

Vitae

unread,
Apr 29, 2008, 12:21:41 PM4/29/08
to greasemonkey-users
Wish it worked, but it didn't. At least not for the site that I need.
Thanks tho. I'm sure I'll find some use in that anyways :-)
Reply all
Reply to author
Forward
0 new messages