Sign in to follow this  
Followers 0
EscapeTheFate

click abutton by itsvalue

13 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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")...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

the button value is 'aggressive' and 'aggressivebutton' is the button id

Share this post


Link to post
Share on other sites

the button value is 'aggressive' and 'aggressivebutton' is the button id

and _IEGetObjById($oIE, "agressivebutton") doesn't work?

If you don't use DebugBar, download it. It will make it easier.

Share this post


Link to post
Share on other sites

the button value is 'aggressive' and 'aggressivebutton' is the button id

Look, 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

-Silwar

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 yourself

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#13 ·  Posted (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 yourself

One... 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 by TheButcher

Read the Rules... IF ya CHEAT you might Lose more then Gold... you might lose your Avatars Life.

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