Sign in to follow this  
Followers 0
Sephora

Problem with script

5 posts in this topic

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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

also specify where in your code the problem is.

Share this post


Link to post
Share on other sites

also specify where in your code the problem is.

I don`t know where`s the problem, that`s what i`m trying to find out.

Share this post


Link to post
Share on other sites

so..is anyone going to help me ? pls

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