Jump to content

quick addition help =P


Recommended Posts

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

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...