EscapeTheFate Posted March 6, 2008 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
weaponx Posted March 6, 2008 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
Uriziel01 Posted March 6, 2008 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
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