Orgins 0 Report post Posted November 30, 2006 (edited) It gets to ''If StringInStr("lost", "lost") Then Reload()'' It copys the text right I tested in notepad. Their is No lost in the text but it does func reload? Instead of sleeping 1 sec. I think it has to do with the substring but I can't seem to get it to work. LifeMana() StartFight() TimerUps() Attack() MouseClick("left", 800, 450, 2) Send("^a");select all Sleep(1500) Send("^c");copy to clipboard $text=ClipGet();set text to clipboard If StringInStr("lost", "lost") Then Reload() Else Sleep(1000) EndIf MouseClick("left", 800, 450, 2) Send("^a");select all Sleep(1500) Send("^c");copy to clipboard $text=ClipGet();set text to clipboard If StringInStr("Take", "Take") Then Pick() Else Sleep(1000) EndIf MouseClick("left", 800, 450, 2) Send("^a");select all Sleep(1500) Send("^c");copy to clipboard $text=ClipGet();set text to clipboard If StringInStr("Disconnected", "Disconnected") Then Reload() Else Sleep(1000) EndIf Any pointers would be nice. Edited November 30, 2006 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast. Share this post Link to post Share on other sites
Thatsgreat2345 0 Report post Posted November 30, 2006 the variable would be the string you are getting from the clip board LifeMana() StartFight() TimerUps() Attack() MouseClick("left", 800, 450, 2) Send("^a");select all Sleep(1500) Send("^c");copy to clipboard If StringInStr(ClipGet(), "lost") Then Reload() Else Sleep(1000) EndIf MouseClick("left", 800, 450, 2) Send("^a");select all Sleep(1500) Send("^c");copy to clipboard If StringInStr(ClipGet(), "Take") Then Pick() Else Sleep(1000) EndIf MouseClick("left", 800, 450, 2) Send("^a");select all Sleep(1500) Send("^c");copy to clipboard If StringInStr(ClipGet(), "Disconnected") Then Reload() Else Sleep(1000) EndIf Share this post Link to post Share on other sites
Orgins 0 Report post Posted November 30, 2006 It works. High Five! I'm a newbie.Sorry if I don't reposed to your replays very fast. Share this post Link to post Share on other sites