EscapeTheFate Posted November 2, 2007 Share Posted November 2, 2007 Okay well this is my first real script from scratch, and I'm having a few issues getting it to work. I can't seem to figure out how to get it to click the button...but the problem is that there is no form or frame #include <IE.au3> $oIE = _IEAttach("Gevalum") MsgBox(0,"","start") Func FightAgain() $oButton = _IEFormElementGetObjByName($oForm, "fight") _IEAction($oButton, "click") _IELoadWait($oIE) EndFunc func Attack() $oButton = _IEFormElementGetObjByName($oForm, "fight") _IEAction($oButton, "click") _IELoadWait($oIE) EndFunc while 1 FightAgain() Attack() WEnd Link to comment Share on other sites More sharing options...
EscapeTheFate Posted November 2, 2007 Author Share Posted November 2, 2007 well i figured it out halfass but im still having issues..the button appears to be clicked but normally after click the button the button disappears, but its still there after its clicked or after whatever happens #include <IE.au3> $oIE = _IEAttach("Gevalum") MsgBox(0,"","start") Func FightAgain() $oButton = _IEGetObjByName($oIE, "aggressivebutton") _IEAction($oButton, "click") sleep(5000) EndFunc func Attack() $oForm = _IEFormGetCollection($oIE, 1) $oButton = _IEFormElementGetObjByName($oForm, "fightbutton") _IEAction($oButton, "click") EndFunc while 1 FightAgain() Attack() WEnd Link to comment Share on other sites More sharing options...
EscapeTheFate Posted November 2, 2007 Author Share Posted November 2, 2007 can somone please helpme? #include <IE.au3> $oIE = _IEAttach("Gevalum") MsgBox(0,"","start") Func FightAgain() $oButton = _IEGetObjByid($oIE, "Agressivebutton") _IEAction($oButton, "click") _IELoadWait($oIE,50,50) EndFunc func Attack() $oButton = _IEGetObjByid($oIE, "aggressivebutton") _IEAction($oButton, "click") sleep(5000) EndFunc while 1 FightAgain() Attack() WEnd Link to comment Share on other sites More sharing options...
EscapeTheFate Posted November 2, 2007 Author Share Posted November 2, 2007 instead of click by ID is there a way to click by value using ieaction? func Attack() $oButton = _IEGetObjByid($oIE, "aggressivebutton") _IEAction($oButton, "click") sleep(5000) EndFunc Link to comment Share on other sites More sharing options...
Nahuel Posted November 2, 2007 Share Posted November 2, 2007 Could you provide us with a link or some source code of the page? Is "Agressivebutton" the name of the button? Try using _IEGetObjByName($oIE, "Agressivebutton")... Link to comment Share on other sites More sharing options...
Blue_Drache Posted November 2, 2007 Share Posted November 2, 2007 Short answer: Yes. Long answer: $L_o_Inputs = _IETagNameGetCollection($L_oIE_CRU, "INPUT") $L_iInputCnt = @extended ConsoleWrite("Debug: Found " & $L_iInputCnt & " input tags" & @LF) Local $flagRFC = 0 If $L_iInputCnt Then For $L_oInput In $L_o_Inputs If $L_oInput.name = "rfcrAmt" And $flagRFC < 1 Then $L_oInput.value = $strRFCAmt ConsoleWrite("Debug: Updated RFCR Amt" & @LF) $flagRFC = 1 EndIf If $L_oInput.type = "submit" And $L_oInput.value = "Update" Then ConsoleWrite("Debug: Found Update button" & @LF) _IEAction($L_oInput, "click") ExitLoop EndIf Next EndIf _IELoadWait($L_oIE_CRU) Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
EscapeTheFate Posted November 2, 2007 Author Share Posted November 2, 2007 the button value is 'aggressive' and 'aggressivebutton' is the button id Link to comment Share on other sites More sharing options...
Nahuel Posted November 2, 2007 Share Posted November 2, 2007 the button value is 'aggressive' and 'aggressivebutton' is the button idand _IEGetObjById($oIE, "agressivebutton") doesn't work?If you don't use DebugBar, download it. It will make it easier. Link to comment Share on other sites More sharing options...
Blue_Drache Posted November 3, 2007 Share Posted November 3, 2007 the button value is 'aggressive' and 'aggressivebutton' is the button idLook, my example works, if you make the effort to study it and apply it to your code. I'm not going to write it for you. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Incognito Posted November 5, 2007 Share Posted November 5, 2007 One would have thought that this was enough warning.http://www.autoitscript.com/forum/index.ph...p;p=370087&Funny.An excerpt from my manual:GENERAL GAME RULES 1. Macroing, or using an automated program to progress for you, is prohibited. If you're caught cheating, your punishment will be no less than a ban, and more than likely an IP ban. Mods will perform routine macro checks on the most active players. in the form of an alert or PM. If you receive a macro check by a mod (their PMs will be bold), you are required to respond. Failure to do so will result in an IP ban for cheating.Not only are you a cheater, but you're an idiot as well. Your presence is not welcome in Gevalum. I have already given your IP, email, and list of known ailiases to a network of game developers I have. I shall enjoy our upcoming discussion.-Silwar Link to comment Share on other sites More sharing options...
EscapeTheFate Posted November 6, 2007 Author Share Posted November 6, 2007 One would have thought that this was enough warning.http://www.autoitscript.com/forum/index.ph...p;p=370087&Funny.An excerpt from my manual:Not only are you a cheater, but you're an idiot as well. Your presence is not welcome in Gevalum. I have already given your IP, email, and list of known ailiases to a network of game developers I have. I shall enjoy our upcoming discussion.-Silwargiving out my IP is an unlawful act as well as giving out my email. Learn your rights before you go banning away..and btw im not lord skeletor...so therefore you aren't all that smart yourself Link to comment Share on other sites More sharing options...
Incognito Posted November 6, 2007 Share Posted November 6, 2007 Alright, scare tactic. I was trying to use you as an example, backfired, whatever. Didn't actually give it out, don't get your panties in a bunch. On another point, I never said you were LS, I said you should have learned. Link to comment Share on other sites More sharing options...
TheButcher Posted November 10, 2007 Share Posted November 10, 2007 (edited) giving out my IP is an unlawful act as well as giving out my email. Learn your rights before you go banning away..and btw im not lord skeletor...so therefore you aren't all that smart yourselfOne... you are correct about the ip thing... two, who said you WERE Lord Skeletor? Three... Why do you even try to tempt the rules? The Rules are there to allow everyone to have fun. Another thing is... if that is the owner of the game... he/she has a right to ban people that BREAK THE RULES, but giving out the ip and e-mail is wrong. Edited November 10, 2007 by TheButcher Read the Rules... IF ya CHEAT you might Lose more then Gold... you might lose your Avatars Life. 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