Jump to content
Sign in to follow this  
EscapeTheFate

quick addition help =P

Recommended Posts

EscapeTheFate

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

Share this post


Link to post
Share on other sites
Uriziel01

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 by Uriziel01

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  

×