langthang084 Posted April 23, 2009 Share Posted April 23, 2009 I run my script and: First, It's run normally but sometimes, after 1-2 hours, it "dont run" (an script icon is still at the taskbar but nothing appear). Could anyone help me about this problem? Thanks!! Link to comment Share on other sites More sharing options...
LurchMan Posted April 23, 2009 Share Posted April 23, 2009 can we see your code? Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
DrKovra Posted April 23, 2009 Share Posted April 23, 2009 You can apply the solution to your problem .... BUT WHERE IS THE CODE ! [s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________--------------- Link to comment Share on other sites More sharing options...
langthang084 Posted April 24, 2009 Author Share Posted April 24, 2009 My script is for 4 nick, my screen has 4 game's windows and here is my code: expandcollapse popupGlobal $Paused, $counter = 0 HotKeySet( "{ESC}", "Quit"); quit = ESC HotKeySet("{PAUSE}", "TogglePause") WinWaitActive("Element Client") While 1 mouseclick("left",252,10) if PixelSearch(243,206,243,206,0x217EC8) <> @error Then if PixelSearch(254,213,254,213,0x004E8C) <> @error Then if PixelSearch(257,209,257,209,0x99C2E3) <> @error Then send("{Printscreen}") sleep(500) Shutdown(1) EndIf EndIf EndIf sleep(1000) do sleep(500) until PixelSearch(104,36,104,36,0xB10205) <> @error send("0") sleep(2000) send("{Tab}") sleep(1000) send("1") sleep(1000) send("1") sleep(1000) mouseclick("left",757,11) sleep(1000) ;do sleep(5000) ;until PixelSearch(610,39,610,39,0xEB0301) <> @error send("0") sleep(2000) send("{Tab}") sleep(1000) send("1") sleep(1000) send("1") sleep(1000) mouseclick("left",292,389) sleep(1000) Do sleep(500) until PixelSearch(100,417,100,417,0xFF543F) <> @error send("0") sleep(2000) send("{Tab}") sleep(1000) send("1") sleep(1000) send("1") sleep(1000) mouseclick("left",760,389) sleep(1000) Do sleep(500) Until PixelSearch(606,418,606,418,0xB10205) <> @error send("0") sleep(2000) send("{Tab}") sleep(1000) send("1") sleep(1000) send("1") sleep(1000) mouseclick("left",252,10) sleep(1000) Do sleep(400) until PixelSearch(146,37,146,37,0xDF0303) = @error sleep(1000) send("2") sleep(1000) send("2") sleep(1000) send("0") sleep(1000) mouseclick("left",757,11) sleep(1000) do sleep(500) Until PixelSearch(656,38,656,38,0xD1251B) =@error sleep(1000) send("2") sleep(1000) send("2") sleep(1000) send("0") sleep(1000) mouseclick("left",292,389) sleep(1000) Do sleep(400) until PixelSearch(151,419,151,419,0xDF0303) = @error sleep(1000) send("2") sleep(1000) send("2") sleep(1000) send("0") sleep(1000) mouseclick("left",760,389) sleep(1000) do sleep(400) until PixelSearch(660,419,660,419,0xDF0303) = @error sleep(1000) send("2") sleep(1000) send("2") sleep(1000) send("8") sleep(1000) ;mouseclick("left",910,433,2) ;sleep(3000) send("0") sleep(1000) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0, $counter, 1) WEnd ToolTip("") EndFunc Func Quit() Exit EndFunc 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