First We Have To Load The Game
Code:
strHTML = HTTP.GetWrapper("http://neopets.com/games/play.phtml?game_id=" & "574")
strID = GetStringBetween(strHTML, "newWin=window.open('", "'+'&width='+width+'&height='+height+'&quality='+quality," & "574" & ",params);")
strID = strID & "&width=550&height=420&quality=high"
strHTML = HTTP.GetWrapper(strID, "http://neopets.com/games/play.phtml?game_id=" & "574")
strID2 = GetStringBetween(strHTML, "</script><SCRIPT type=" & ChrW$(34) & "text/javascript" & ChrW$(34) & ">flash_object(" & ChrW$(34), ChrW$(34) & ", '100%', '100%', 'myFlash', 'high', '6', 'exactfit', '', 'white', '', 'always'")
Flash.Movie = strID2 then we got the get the variables
Code:
Private Sub Timer1_Timer()
On Error Resume Next
Call Flash.SetVariable("_level10.controller.gGame.completedNumber", "99") 'puts 99 grundos per level
strPT1 = Flash.GetVariable("_level10.controller.gGame.aWords") 'gets the words
strPT1 = Replace(strPT1, ",", "")
If strPT1 <> "" Then
Flash.SetFocus
SendKeys strPT1 'types the words
End If
End Sub