jcunit Posted May 14, 2014 Share Posted May 14, 2014 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. 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 14, 2014 Share Posted May 14, 2014 (edited) A good place to start is by reading the Forum Rules - http://www.autoitscript.com/forum/index.php?app=forums&module=extras§ion=boardrules. Edited May 14, 2014 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
jcunit Posted May 14, 2014 Author Share Posted May 14, 2014 A good place to start is by reading the Forum Rules - http://www.autoitscript.com/forum/index.php?app=forums&module=extras§ion=boardrules. I thought autoit was created to automate stuff like this.. My bad lol A mod can close this thread or something. I can find help somewhere else Link to comment Share on other sites More sharing options...
JohnOne Posted May 14, 2014 Share Posted May 14, 2014 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. 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