legoman1 Posted May 4, 2010 Share Posted May 4, 2010 i have created 2 seperate scripts to help me in a game (not bots) that complement each other but occasionally, one will just crash. i must run one which will run the other, and send it data once. all of that works, but occasionally i will get an error message saying there was an error on a line that doesn't even existtheni barely have 42 lines!i am able to reproduce the error, by spamming it, but is there some way to fix it? here is the sourcei forgot to mention: this is made to send ctrl-click to the user-selected window(from the sister script) and to block from scrolling (in the same selected window)#include<BlockInputEx.au3> AutoItSetOption("TrayIconHide", 1) #include<Misc.au3> $dll = 'user32.dll' $title = "" While 1 ; in this part, it is awaiting user input from my other script $title = ConsoleRead() If $title <> "" Then ExitLoop EndIf WEnd While 1 WinWaitActive($title) If _IsPressed('04', $dll) = 1 Then _BlockInputEx(1, "", "11", $title) Send("{CTRLDOWN}") Do Send("{CTRLDOWN}") MouseClick("left") Until _IsPressed('04', $dll) = 0 Do Send("{CTRLUP}") Until _IsPressed(11, $dll) = 0 _BlockInputEx(0) EndIf WEnd fin() Func fin() Exit 0 EndFuncbtw, it is compiled as an exe but i change the extension to .lego so that it is not run on its own, so that it MUST be ran from the sister script. (ps. is there a better way to do that?)also, is there a better way to hotkey mouseclicks other than _IsPressed?thank you Link to comment Share on other sites More sharing options...
MvGulik Posted May 4, 2010 Share Posted May 4, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
legoman1 Posted May 5, 2010 Author Share Posted May 5, 2010 (edited) so assumably i can just add the functions from the include to the end of my script, and then see what line that correlates to? Edit: Then how am i supposed to find what is causing the error? Edited May 5, 2010 by legoman1 Link to comment Share on other sites More sharing options...
legoman1 Posted May 5, 2010 Author Share Posted May 5, 2010 yes i use scite but what is obfuscator? Link to comment Share on other sites More sharing options...
MvGulik Posted May 5, 2010 Share Posted May 5, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
legoman1 Posted May 5, 2010 Author Share Posted May 5, 2010 (edited) i added that to the top, but nothing happens. it has to be compiled, right? Edit: so there is a difference b/w the one that comes with autoit and that one? (i'm pretty sure it came with autoit) Edited May 5, 2010 by legoman1 Link to comment Share on other sites More sharing options...
MvGulik Posted May 5, 2010 Share Posted May 5, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
legoman1 Posted May 5, 2010 Author Share Posted May 5, 2010 so i got an error while compiling -###2 Obfuscation Error: Found Execute() statement which will lead to problems running your obfuscated script. >### current Func: _WinAPI_SetLayeredWindowAttributes C:\Program Files\AutoIt3\include\WinAPI.au3(5364,1) Warning for line:$i_transcolor = Execute('0x00' & StringMid($i_transcolor, 5, 2) & StringMid($i_transcolor, 3, 2) & StringMid($i_transcolor, 1, 2)) strange because thats a default file... oh btw thanks for all the help the new scite looks better the error is not critical but it annoys me Link to comment Share on other sites More sharing options...
MvGulik Posted May 5, 2010 Share Posted May 5, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
darkjohn20 Posted May 5, 2010 Share Posted May 5, 2010 Off topic: Hell yeah, Conquer online boy. 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