#include #include _IEErrorHandlerRegister() $oIE = _IECreateEmbedded() $GUI = GUICreate("Last.fm Player", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 500, 400) GUISetState() ;Show GUI _IENavigate($oIE, "http://www.last.fm/listen/user/toonboon/personal") $username = "toonboon" DirGetSize(@ScriptDir & "\Url") If @error = 1 Then DirCreate(@ScriptDir & "\Url") EndIf $File = FileOpen(@ScriptDir & "\Url\" & $username & ".html",2) MsgBox(0,'',$File) FileWriteLine($File, '' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & ' ' & @CRLF & '' & @CRLF & '' & @CRLF & '' & @CRLF & '' & @CRLF & '') _IENavigate($oIE,@ScriptDir & "\Url\" & $username & ".html") While 1 Sleep(1000) WinSetTitle($GUI, '', StringReplace($oIE.document.title, " - Last.fm", "")) WEnd