?

Log in

No account? Create an account

wernotalone in ar_daily


Hello! My name's Alyssa, I'm 17, and I love Alan. It's a shame that Bloom is in the lead on the HELLO! magazine polls isn't it? Well here's my tutorial for writing a script to vote for Alan for you! Isn't it fantastic? No more watching the clock or voting half a second too early! It's amazing, really.

Click Animation




Animation thanks to amber_dragon_64


So first you have to download and install the program dreamingallday mentioned. It's at this site.

Go to the tutorial. Follow the directions for creating a new script. Basically in My Documents or whever you want the file to be, you right-click > new > AutoHotkey Script.

Image hosted by Photobucket.com

Then right click on the script you created and select "Edit Script"

The scripts open with Notepad. They look like this:
Image hosted by Photobucket.com

What I have typed in mine is:

Loop
{
WinActivate, HELLO!
MouseMove, 1018, 606 [, 0]
MouseClick, left, 1018, 606
MouseMove, 264, 524
MouseClick, left, 264, 524
Sleep, 904000
}

The "loop" command repeats the set of actions in the Brackets. WinActivate makes the window active. You put the title of the window after the comma. I only have to use part of the title because I am only running one browser. MouseMove moves my mouse. MouseClick "clicks" the mouse. I have it click on the scrollbar first to get alan's link to appear onscreen. then it moves the mouse over the "vote" link and clicks again. Then the Sleep command tells the program to wait for 904000 milliseconds, or 15 minutes and 4 seconds.

Okay. So onto the actual tutorial bit.

Copy and paste this code into your new file
Loop
{
WinActivate, Title of Window
MouseMove, x1, y1, 0
MouseClick, left, x1, y1
MouseMove, x2, y2, 0
MouseClick, left, x2, y2
Sleep, 904000
}

Image hosted by Photobucket.com

Open "AutoIt3 Window Spy"

Image hosted by Photobucket.com

Now, once you have the program opened, select the browser window you want it to vote in. To get it to scroll to alan, put you cursor over the scroll bar. Write down the number that I highlighted in the green rectangle. This is your x1, y1 value.

Image hosted by Photobucket.com

Then click your mouse. It should scroll you to the bottom of the page. Move your mouse over the vote link. Record the numbers once again. These are your x2, y2 values.

Image hosted by Photobucket.com

You'll notice I also highlighted the window title, which you need to put next to the WinActivate command. It's case-sensitive, so make sure you get all the capitals right. Fill in the window title, x1, y1, x2, and y2.

Following the numbers I got, the script looks like this, your numbers will most likely be different.

Loop
{
WinActivate, HELLO! Grand Finale 2005 - Microsoft Internet Explorer ahk_class IEFrame
MouseMove, 1018, 660, 0
MouseClick, left, 1018, 660
MouseMove, 264, 524, 0
MouseClick, left, 264, 524
Sleep, 904000
}

If it seems simpler, you can create a different script for each browser

-or-

You can get it to vote in multiple windows by repeating the steps and adding new lines to the code. you'd just need to copy these lines:

WinActivate, Window title #2
MouseMove, 1018, 660, 0
MouseClick, left, 1018, 660
MouseMove, 264, 524, 0
MouseClick, left, 264, 524

Then fill in the values for the other browser. Paste it just before the Sleep line. You only need one Sleep line in the whole script. If you have multiple sleep lines in between each browser, you'd be telling the program to wait 15 minutes between each vote when you only want it to wait 15 minutes total. In that time, the Orlando Bloom fans could multiply by Osmosis, which would not be good.

Once you've finished the file, save it. Then double click to run it. You'll know it's working immediately. You should have all your browser windows open so that the program could find them, and be connected to the internet obviously. You'll know if they work because the mouse will fly across the screen and windows will be activated and all that cool stuff. You can leave them running all night if you want.

To make them stop running, go to your system tray, next to the clock. The auto hotkeys icon is a green box with an H in it. rightclick it, and hit exit.

I hope this is really clear for everyone. If there are any questions, I am practically always online, just leave it in a comment and I should get back to you pretty quickly.

Oh, and Happy New Year!

Image hosted by Photobucket.com

xposted on my journal

Comments

Wow sounds fantastic but I have a headache just looking at it without reading!! Good luck to all who try though!!
it's really not that difficult, and it makes life easier in the long run.
You're so awesome for posting this! I'm off to do it right now, thank you! :D
I'm too drunk to even attempt to read all that *blink*

I will look at this tomorrow - how many days do we have left?
January 13th I think.
Or you can download 'Aarons Auto Cliker" and install that. You just set the time and literally point where you want it to click. Easy, peasy. Don't try to do less than 20 seconds a click. Hello.com will ignor your clicks. Occationaly hello.com loads something which will throw the mouse pointer off, (at least in firefox) so you have to keep an eye on it. Does not do multiple pages.
Thank you very much for the explanation and the graphics, I'm using the program with Internet Explorer and Firefox and it works nicely! Well, I had some problems with Firefox, but now it seems to work properly.
Neat. I heard that sometimes firefox loads something that throws off where the mouse click is, was that your problem?
I don't know if Firefox loads something but yes, the mouse click changed its position. What I've done is re-edit the script for Firefox again and again and now it works (it took me three or four tries). Still, I'm not completely sure about it all the times, hmmmmm...

BTW, I recommended your tutorial in my LJ, I hope you don't mind.
Nah, that's fine with me. The more people voting the better! Especially since my friends voted for Gerard Butler -_-*
LOL! No one of my friends would vote for Alan either! But we know that we're not alone! Mwahahaha!
Gerard Butler is my second choice after Alan. If Alan wasn't in the page, I would vote for him. But just once. Maybe twince. ^___^
Yeah, Gerard Butler is my second too. Sean Bean is beautiful too, although... hmmmmm, I think I only like him as Boromir.
Firefox maaaaaalo. A mi también me ha dado problemas :(

Quisquilloso...
Y que lo digas, jope. Al final parece que funciona, pero aún así tienes que estar pendiente de él. Lo mismo pasa con Opera (sí, esstoy usando tres servidores ;D ), sin embargo, con IE no ha habido ningún problema.
Thanks for this. It is really helpful.

Happy New Year by the way!

That you, Sheena?
Yep