Sign in to follow this  
Followers 0
jcunit

How would I go about doing this

4 posts in this topic

What I'm trying to do is create a script that catches eggs for a game called dragon cave (google it if you'd like to try it). So far, my script opens the site, signs in, and goes to the specific page where the egg can be found. The thing that I thought would be the hardest thing of all to figure out how to do is actually picking up the egg.

8Lvnp.jpg

This is what they look like. The only thing that separates the eggs is the description of the egg. How would I make my script identify an egg based on a certain description, and quickly click on the required egg? I've tried to figure out how to do this myself and I cannot for the life of me figure it out.

Could someone possibly tell me the required functions I would have to use in order to do this? I know it would most likely use IE.au3.

#include <IE.au3>

Call("signIn")

Func signIn()
Global $oIE = _IECreate("http://dragcave.net/login")

Local $user = _IEGetObjByName($oIE, "username")
Local $pass = _IEGetObjByName($oIE, "password")
Local $button = _IEGetObjByName($oIE, "submit")

_IEFormElementSetValue($user, "my username")
_IEFormElementSetValue($pass, "my password")

_IEAction ($button, "click")

_IELinkClickByText($oIE, "Alpine")

Sleep(3000)

_IEQuit($oIE)

EndFunc

Share this post


Link to post
Share on other sites



I thought autoit was created to automate stuff like this.. My bad lol

I believe it was one of the big and main things it was used for, for half of it's life, and still probably is, but discussion of it got banned some time ago.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0