Jump to content

click abutton by itsvalue


Recommended Posts

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

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

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

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

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

Link to comment
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

Link to comment
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
Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...