Hallo,
hier mein Script:
[autoit]
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#include <GUIConstants.au3>
#include <IE.au3>
#include <String.au3>
#include <array.au3>
$font="Comic Sans MS"
$oUrl = "http://top.XYZ.biz/cgi-bin/landen.pl"; URL für Chatfenster
$pUrl = "http://top.XYZ.biz/cgi-bin/prat.pl"; URL für Anmeldefenster
$gui = GUICreate("Internet-Spezialisten Chat", 1000, 750, -1, -1) ; GUI
GUISetBkColor (0xFFFFF0)
; Chatfenster
$oIE = _IEcreateEmbedded ()
GUICtrlCreateObj($oIE,0,0,1,1)
$chatbox = GUICtrlCreateEdit ("Chatfenster",0,0,1000,520,$WS_VSCROLL + $ES_AUTOVSCROLL)
; Eingabe-Fenster
$pIE = _IEcreateEmbedded ()
GUICtrlCreateObj($pIE,0,580,1000,180)
; Ausgabe
GUISetState(@SW_SHOW)
_IENavigate ($oIE, $oUrl)
_IENavigate ($pIE, $pUrl)
_IELoadWait($oUrl)
While 1
[/autoit][autoit][/autoit][autoit]$newstring = StringReplace ( _IEBodyReadText($oIE), "ChatChatChat|EXIT" , "|Ex" )
GUICtrlSetData ($chatbox, $newstring)
Sleep(1000)
WEnd
[/autoit]Das ganze funktioniert mal 10 Sekunden mal 2 Minuten, dann jedoch kommt der Fehler:
ZitatLine-1:
Variable must be of Type "Object"
Bin leider etwas ratlos, da in dieser Zeit das Script ja schon ätliche male komplette durchlief.
Weis jemand einen Rat?
Liebe Grüß
tooliload, Tino