haXor4life Posted January 23, 2009 Posted January 23, 2009 I were thinking about this for hours but It didn't work. #include <String.au3> $Text = FileRead("file.txt") $Text = _StringBetween($Text, "<block>", "</block>") For $i = 0 To UBound($Text) -1 Send($Text[$i]) Sleep(12000) Next This script sends text that lies between marks through pauses. How can I make it to skip next in turn sending if it face certain text? Help please.
Manjish Posted January 23, 2009 Posted January 23, 2009 use this: #include <String.au3> $Text = FileRead("file.txt") $Text = _StringBetween($Text, "1", "2") For $i = 0 To UBound($Text) -1 if $text[$i]<>"some text" Then send() Next Func send() Send($Text[$i]) Sleep(12000) endFunc [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now