Hallo Zusammen,
Dieser Script funktioniert ja eigentilch...
[autoit]; demonstration to find chracters that change between to standard points
; or just find a string
#include <IE.au3>
#include <String.au3>
#Region --- IE-Builder generated code Start ---
[/autoit][autoit][/autoit][autoit]$oIE = _IECreate()
[/autoit][autoit][/autoit][autoit];------------- User input --------------
_IENavigate($oIE, "http://www.autoitscript.com/") ; web address
$Find = "Welcome to the " ; my info shows after this line... or just find this line
$Before = "- the home " ; my info shows before this line... or set as ""
; ------------ End User input -------------
Sleep(1000)
$body = _IEBodyReadHTML($oIE)
$sloc = @TempDir & "\stest.txt"
FileDelete($sloc)
FileWrite($sloc, $body)
$sfile = FileOpen($sloc, 0)
$num = 0
While 2
$num = $num + 1
$sline = FileReadLine($sfile, 75)
If @error Then
MsgBox(262208, "Fail", "The string was NOT found ")
FileClose($sfile)
Exit
EndIf
If StringInStr($sline, $Find) Then
MsgBox(64, "Success", "The string " & $Find & " was found " & @CRLF & " on line # " & $num, 5)
If $Before = "" Then ExitLoop
$Found = _StringBetween($sline, $Find, $Before)
MsgBox(64, "Found", "The string is *" & $Found[0] & "* ", 5)
ExitLoop
EndIf
WEnd
#EndRegion --- IE-Builder generated code End ---
[/autoit]Aber der ruft immer ein neues Fenster auf, kann ich es irgendwie steuern das er es in dem Fenster macht das in diesem moment offen ist?
Vielen Dank für Antworten
mfg 4ut0it