Capcuzzz Posted October 7, 2009 Share Posted October 7, 2009 hi i'm totally new to this autoit, i got no basic at all but i'm learning.I hope someone can help me to learn by doing it.here's what i got... it's a game, so it's not a real bank or money.i've done a very little so far which is navigating to the link, to the game link, and to bank, and post some money, but i dunno how to refresh or copy the figures.so,what i wanna ask is how do i copy the figures in "money" which shown as 0 in picture, and input it in the deposit form?as in the game we earn money every hour, so how do i refresh the web every xx mins and how to loop the script so it wont stop until i press a hotkey?i read the help file that come with autoit, but still i got no luck with it.$o_IE = _IECreate () _IENavigate ($o_IE, "http://www.website.com") _IELinkClickByText ($o_IE, "army") _IELoadWait($o_IE) _IELinkClickByText ($o_IE, "Army") _IELoadWait($o_IE) Sleep(1500) _IELinkClickByText ($o_IE, "Bank") _IELoadWait($o_IE) Sleep(1500) _IELinkClickByText ($o_IE, "003-00247482") _IELoadWait($o_IE) Sleep(1500) $o_SearchForm = _IEFormGetObjByName ($o_IE, "deposit") $o_Keywords = _IEFormElementGetObjByName ($o_SearchForm, "amount") _IEFormElementSetValue ($o_Keywords, "100") _IEFormSubmit ($o_SearchForm) Link to comment Share on other sites More sharing options...
Mecrazycoder Posted October 7, 2009 Share Posted October 7, 2009 hi i'm totally new to this autoit, i got no basic at all but i'm learning. I hope someone can help me to learn by doing it. here's what i got... it's a game, so it's not a real bank or money. i've done a very little so far which is navigating to the link, to the game link, and to bank, and post some money, but i dunno how to refresh or copy the figures. so,what i wanna ask is how do i copy the figures in "money" which shown as 0 in picture, and input it in the deposit form? as in the game we earn money every hour, so how do i refresh the web every xx mins and how to loop the script so it wont stop until i press a hotkey? i read the help file that come with autoit, but still i got no luck with it. $o_IE = _IECreate () _IENavigate ($o_IE, "http://www.website.com") _IELinkClickByText ($o_IE, "army") _IELoadWait($o_IE) _IELinkClickByText ($o_IE, "Army") _IELoadWait($o_IE) Sleep(1500) _IELinkClickByText ($o_IE, "Bank") _IELoadWait($o_IE) Sleep(1500) _IELinkClickByText ($o_IE, "003-00247482") _IELoadWait($o_IE) Sleep(1500) $o_SearchForm = _IEFormGetObjByName ($o_IE, "deposit") $o_Keywords = _IEFormElementGetObjByName ($o_SearchForm, "amount") _IEFormElementSetValue ($o_Keywords, "100") _IEFormSubmit ($o_SearchForm) Here is couple of answers For refreshing use _IEAction($oIE,"Refresh").If application use form then for copying/transferring money use _IEFormElementSetValue(). It will be fine,you give me the link for that page. [size="4"][font="Arial Narrow"][font="Garamond"]Attitude is a little thing that makes a big difference[/font][/font][/size][indent][/indent] Link to comment Share on other sites More sharing options...
Capcuzzz Posted October 7, 2009 Author Share Posted October 7, 2009 (edited) Here is couple of answers For refreshing use _IEAction($oIE,"Refresh").If application use form then for copying/transferring money use _IEFormElementSetValue(). It will be fine,you give me the link for that page. hi, thanks for the reply, even if i give u the link, u wont be able to see it since it needs 100 posts in the forum to be able to play that game, and so how can i know if he use form? here is what i got from the view source <div class='formsubtitle'><a href='javascript:togglemenucategory("asc_bank", 1);'>Bank</a></div> <p> · <b>Money</b>: 0<br />· <b><a href='index.php?autocom=army&core=bank&'>Manage Bank Accounts</a></b><br />· <b><a href='index.php?autocom=army&core=bank&CODE=create'>Create a Bank Account</a></b><br />· <b><a href='index.php?autocom=army&core=bank&CODE=listtype'>Bank Account Type Listing</a></b><br /> </p> </div> does it help? or maybe this? </table> <script type="text/javascript"> //<![CDATA[ var member_money = 0; var fee = new Array(); fee['withdraw'] = new Array(); fee['withdraw']['fixed'] = 0; fee['withdraw']['percent'] = 0.00; fee['deposit'] = new Array(); fee['deposit']['fixed'] = 0; fee['deposit']['percent'] = 0.00; var balence = 611570; //]]> </script> edit: oh yes, something need to ask as well, if it is possible to make the condition if the money is > 0 then only copy it to deposit form n submit. the one that i made previously, i was trying to submit 100 to the deposit, and it works but need to add this few things up. thanks Edited October 7, 2009 by Capcuzzz Link to comment Share on other sites More sharing options...
Capcuzzz Posted October 7, 2009 Author Share Posted October 7, 2009 bump anyone? 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