Jump to content

Problem with script


Sephora
 Share

Recommended Posts

Can please anyone help me with something?

I don`t know what`s wrong in here:

Func clicknewfight()

$oFrame = _IEFrameGetObjByName($oIE, "toiminta")

$oForm = _IEFormGetObjByName($oFrame, "stuph")

$oCreatures = _IEFormElementGetObjByName($oForm, "a")

_IEFormElementOptionselect($oCreatures, "Fight Creatures", 1, "byText")

$oMonster = _IEFormElementGetObjByName($oForm, "k")

_IEFormElementOptionselect($oMonster, $monstername, 1, "byText")

Select

Case IsObj(_IEFormElementGetCollection($oForm, 5))

$oFight = _IEFormElementGetCollection($oForm, 5)

$oFight.click

Case Else

sleep(4000)

EndSelect

EndFunc

Func clickcast()

$oFrame = _IEFrameGetObjByName($oIE, "toiminta")

$oForm1 = _IEFormGetObjByName($oFrame, "castForm")

$oForm2 = _IEFormGetObjByName($oFrame, "fightForm")

$oButton1 = _IEFormElementGetObjByName($oForm1, "btn_cast")

$oButton2 = _IEFormElementGetObjByName($oForm2, "btn_cast")

$check1 = IsObj($oButton1)

$check2 = IsObj($oButton2)

Select

Case $check1 = 1

$oButton1.click

Case $check2 = 1

$oButton2.click

Case Else

sleep(10)

EndSelect

EndFunc

It clicks "New fight" 2 times without waiting.I need it to click "New Fight" and then "Cast".

Thank you

Link to comment
Share on other sites

Can please anyone help me with something?

I don`t know what`s wrong in here:

It clicks "New fight" 2 times without waiting.I need it to click "New Fight" and then "Cast".

Thank you

Full code please i don't fully understand with just functions.

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

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