Jump to content

Recommended Posts

Posted

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

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

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
×
×
  • Create New...