Sign in to follow this  
Followers 0
multiloser

Php Windows?

4 posts in this topic

Hello, firstly, thanks in advance.

So what I'm trying to do is create a bot for this online RPG, this is what I have so far:

#include <IE.au3>
$oIE = _IECreate ("www.kingdomofloathing.com",1,1,0)
_IELoadWait ($oIE)
$oForm = _IEFormGetObjByName ($oIE, "Login")
$oLogin = _IEFormElementGetObjByName ($oForm, "loginname")
$oPass = _IEFormElementGetObjByName ($oForm, "password")
_IEFormElementSetValue ($oLogin, "myusername")
_IEFormElementSetValue ($oPass, "mypassword")
_IEFormSubmit ($oForm)

The above code works to get me logged into the game, at which point I am presented with four mini-windows. A bar at the top with navigation links, one on the left with character stats, one on the right with a chat box, and the middle and main window, which defaults to a map of the virtual island.

Basically, I want to click on a picture on that map (or a link on the navigation bar)

I tried

_IEImgClick (for the map) and _IELinkClickByText (for the navigation bar)

I am 100% sure that I implemented them correctly. I even put a Sleep (5000) before them to make sure that the windows were fully loaded before it went onto these steps.

I cannot _IENavigate because the website functions in PHP, and navigating by the toolbar defaults the site back to the island map.

I do not want to do a pixel function, just cause. My browser windows appear at different sizes because I keep resizing them constantly.

Has anyone ever had this problem before?

I would really appreciate any advice/help. Thank you!

Share this post


Link to post
Share on other sites



Sorry to bump this, but I would just end up re-asking anyway.

This is quite a dilemma for me.

Share this post


Link to post
Share on other sites

Sorry to bump this, but I would just end up re-asking anyway.

This is quite a dilemma for me.

RPG bots have been banned from assistance on the AutoIt forums... That's why no one has replied, we are afraid of getting our accounts removed.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Oh, sorry then.

My mistake.

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