[HOW-TO] Create always-working scripts for YouLikeHits/Addmefast and similar

MadMX

Regular Member
Joined
Oct 2, 2011
Messages
254
Reaction score
184
Hi everyone.
In the past days I was looking desperately for scripts/bots that automate the process of gaining credits at social-exchange sites like YouLikeHits or Addmefast. As most of you know, some scripts are also on BHW. The problem which appears is that as soon as they are published, the owner of such a social-exchange site modifies his site a little and your scripts stop working. Personally, I have learned Python for 1 and 1/2 years, but I am a lazy person.

After doing some research, I found a decent way to create a script that will always work. What I am talking about is Project Sikuli.

What's SIKULI?
Sikuli is a visual technology to automate and test graphical user interfaces (GUI) using images (screenshots). Sikuli includes Sikuli Script, a visual scripting API for Jython, and Sikuli IDE, an integrated development environment for writing visual scripts with screenshots easily. Sikuli Script automates anything you see on the screen without internal API's support. You can programmatically control a web page, a Windows/Linux/Mac OS X desktop application, or even an iphone or android application running in a simulator or via VNC.


So basically, Sikuli Scripting is a scripting language for beginners on the basis of both Java and Python. The software makes it very easy to automate processes on a website. Let me show you YouLikeHits as an example:


Step 1:
Download SIKULI and install it(official site). After installation, open the Sikuli IDE.

Step 2:
Open your browser, navigate to Youlikehits, click on Facebook Likes and click on the first green "Like" button.

Step 3:
Switch to the IDE. What we need to do is use the click(), sleep() and exists() function. Don't worry, even if you have no idea how to code, this will be very easy. The big advantage that comes with SIKULI(and the reason why it's for beginners) is that inside the brackets, where normally you'd have to specify the button(for example the "Like" button), you can simply put a screenshot of the button. SIKULI will now search the button in the webpage and execute your command.

So the first thing we want SIKULI to do is to click the Like button. Click on 1.PNG on the left-side of SIKULI IDE. Directly after doing this, you'll have a small box on your screen which allows you to select a small frame. Obviously, you select the Facebook-Like-Box.
If you now run the Script, it will search for the picture of the Like-Box in your currently opened window and will click it.

If you have understood what the whole thing is about, you'll probably now what the next steps are. All you need to do is doing the same thing for the "Confirm Like & Get Points" button.
NOTE: This software will only work if you have the YOULIKEHITS window in the foreground, you cannot do anything else while this script works, so just let it run over night.

Step 4:
Modify your script to avoid errors. Most of the commands that you can use in Python are also available in SIKULI. Also, the syntax is very similar.

Below is a slightly better version that will avoid at least one error. Be creative and improve your scripts and share them in this thread.

That is how my script looks so far:
2.PNG

What you see here is that I have used a simple loop(loops 10 times), an if-clause and a 5-second-sleep(this is important!!). So if the owner of such a site now decides to modify his site, you only change some screenshots in your script and everything will work fine.


Download:
Code:
http://www.mediafire.com/?g8wcaause1ibhas

So, this was my first little tutorial, I hope you like it. If so, I'd appreciate THX or even REP if you like :)
Please do not hesitate to ask questions in this thread!


To your success,
MadMX!
:willy::45:
 
Last edited:
Or just use iMacros, you can automate 90% by just recording what you click, the rest is fine-tuned with some simple research, there is imacros wiki... For anybody that has problems with scripts freezing and mozilla crashing, I have a simple .exe file that restarts firefox every xyz seconds and starts the imacros script.

Cheers
 
Or just use iMacros, you can automate 90% by just recording what you click, the rest is fine-tuned with some simple research, there is imacros wiki... For anybody that has problems with scripts freezing and mozilla crashing, I have a simple .exe file that restarts firefox every xyz seconds and starts the imacros script.

Cheers

For me Imacros does not work that well, but thx for your post
 
Or just use iMacros, you can automate 90% by just recording what you click, the rest is fine-tuned with some simple research, there is imacros wiki... For anybody that has problems with scripts freezing and mozilla crashing, I have a simple .exe file that restarts firefox every xyz seconds and starts the imacros script.

Cheers

Can You Share Script iMacros for me ? Thanks
 
Holy cow! Nice share dude. Got a simple thing running lol.
 
nice share can i automate youtube uploadin too and auto fillin forms ,?
 
nice share can i automate youtube uploadin too and auto fillin forms ,?
Of course you can ;). Just use the functions click() and type(). Nothings impossible.

hmmmm, thanks for the info. But is Sikuli better than iMacros?
Well, how do you define better? Both do what you want, don't they? IMO, Sikuli is easier to use but to each his own!

Glad you like it.
MadMX
 
Really great only every time I click on that button it will disappear...:(... I think I have to figure it out..but any way..thanks allot!
 
Really great tutorial.Will be using this for many different purposes.Thanks
 
Never heard of it until now but im going to try it out! It looks like a nice little program and it was developed at MIT
 
I have problem. When i click CLICK it doesn't open up frame for me to pick button,its just turns off...
 
Hey OP. Im playing with sikuli quick question tho.. in the example you gave, how would you make that loop 5 times then click another image, wait 5 and start the script all over again?
 
Back
Top