Sephora Posted September 4, 2007 Share Posted September 4, 2007 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) EndSelectEndFuncFunc 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) EndSelectEndFuncIt 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 More sharing options...
MerkurAlex Posted September 4, 2007 Share Posted September 4, 2007 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 youFull 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 More sharing options...
qazwsx Posted September 4, 2007 Share Posted September 4, 2007 also specify where in your code the problem is. Link to comment Share on other sites More sharing options...
Sephora Posted September 5, 2007 Author Share Posted September 5, 2007 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. Link to comment Share on other sites More sharing options...
Sephora Posted September 7, 2007 Author Share Posted September 7, 2007 so..is anyone going to help me ? pls 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