fataly Posted November 11, 2007 Share Posted November 11, 2007 i have this script: While 1 AdlibEnable("puf1", 440000) Sleep(1000) Send("z") Sleep(500) send("r") Sleep(10000) Send("{space}") Sleep(500) Send("{space}") Sleep(500) Send("{space}") Sleep(500) Send("{space}") wend Func puf1() Send("6") sleep(1000) send("7") EndFunc So, i want splashtxt to show how many times this is looped. i really dont now how to do it.. can some one tell how? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 11, 2007 Share Posted November 11, 2007 Using splashtxt may mess things up with your script so i think tool tip would be best Global $var = 0 While 1 AdlibEnable("puf1", 440000) Sleep(1000) Send("z") Sleep(500) send("r") Sleep(10000) Send("{space}") Sleep(500) Send("{space}") Sleep(500) Send("{space}") Sleep(500) Send("{space}") $var += 1 ToolTip("Script has looped: " & $var & " times",0,0) wend Func puf1() Send("6") sleep(1000) send("7") EndFunc Link to comment Share on other sites More sharing options...
fataly Posted November 11, 2007 Author Share Posted November 11, 2007 ty much, but it can do it splashtxt? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 11, 2007 Share Posted November 11, 2007 The problem is that it would take focus away from whatever your scripting is doing, and it would not continually show like the tooltip does. Link to comment Share on other sites More sharing options...
fataly Posted November 11, 2007 Author Share Posted November 11, 2007 Global $var = 0 global $var1 = 0 global $var2 = 0 WinActivate("Archlord") Sleep(3000) While 1 AdlibEnable("puf1", 440000) Sleep(1000) Send("{z down}") Sleep(500) Send("{z up}") Sleep(1000) If PixelSearch(414,24,587,26,0xE74542,1,1) then Sleep(500) Send("{r down}") Sleep(500) Send("{r up}") Sleep(10000) EndIf If not PixelSearch(414,24,587,26,0xE74542,1,1) Then Sleep(1000) Send("{space}") Sleep(500) Send("{space}") Sleep(500) Send("{space}") Sleep(500) Send("{space}") EndIf $var += 1 $var1 += 14 $var2 += 32 SplashTextOn("Monsters Killed: " ," Killed " & $var & @LF & "Up time - "& $var1 &" seconds" & @LF & "Looted - "&$var2&" Gold",100,100,815,500) wend Func puf1() Send("6") sleep(1000) send("7") EndFunc I maked this. Can this work? Link to comment Share on other sites More sharing options...
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