EscapeTheFate Posted March 6, 2008 Share Posted March 6, 2008 func apples() $Frame = _IEFrameGetObjByName($oIE, 0) $Clip = _IEBodyReadtext($Frame) If StringInStr($Clip, "woohoo!", 1, 1) Then $apples =_StringBetween($Clip, 'find '," apples.") tooltip($apples[0]) endfunc while 1 apples() wend I want to make the amount of apples found to keep adding up and display in tooltip I have no clue how to even begin something like that =P Link to comment Share on other sites More sharing options...
weaponx Posted March 6, 2008 Share Posted March 6, 2008 Global $totalApples = 0 func apples() $Frame = _IEFrameGetObjByName($oIE, 0) $Clip = _IEBodyReadtext($Frame) If StringInStr($Clip, "woohoo!", 1, 1) Then $apples =_StringBetween($Clip, 'find '," apples.") $totalApples += $apples[0] tooltip($totalApples) endfunc while 1 apples() wend Link to comment Share on other sites More sharing options...
Uriziel01 Posted March 6, 2008 Share Posted March 6, 2008 (edited) Like this?: func apples() $Frame = _IEFrameGetObjByName($oIE, 0) $Clip = _IEBodyReadtext($Frame) If StringInStr($Clip, "woohoo!", 1, 1) Then $apples =_StringBetween($Clip, 'find '," apples.") $apples_finded=$apples_finded+$apples[0] tooltip($apples_finded) endif endfunc Global $apples_finded=0 while 1 apples() wend Edited March 6, 2008 by Uriziel01 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