jackyyll Posted April 6, 2005 Share Posted April 6, 2005 Okay so in my game im trying to make a bot for when you use the bot an error will come up, how do i make it so when the certain error window comes up it sends "o"? Link to comment Share on other sites More sharing options...
GrungeRocker Posted April 6, 2005 Share Posted April 6, 2005 if @ error then send("o") endif [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font] Link to comment Share on other sites More sharing options...
jackyyll Posted April 6, 2005 Author Share Posted April 6, 2005 i dont think that will work.. because the error is INSIDE the game but is a serperate window.. Link to comment Share on other sites More sharing options...
Blue_Drache Posted April 6, 2005 Share Posted April 6, 2005 i dont think that will work.. because the error is INSIDE the game but is a serperate window..<{POST_SNAPBACK}>AdlibEnable("function"[,time]) Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
herewasplato Posted April 6, 2005 Share Posted April 6, 2005 (edited) pseudo-code - may be glaring errors..... if winexists(title) = 1 then send ("o") else exitloop 2 endif Edited April 6, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
jackyyll Posted April 6, 2005 Author Share Posted April 6, 2005 None of those work... what if it was like IfWinActive(Instruction) then send("o") Else ?? Endif Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 6, 2005 Share Posted April 6, 2005 (edited) is the window real or fake? Edited April 6, 2005 by Xenogis [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
jackyyll Posted April 6, 2005 Author Share Posted April 6, 2005 It's real Link to comment Share on other sites More sharing options...
jackyyll Posted April 6, 2005 Author Share Posted April 6, 2005 Right now im using Macro Express 3 to cancel out of the error, but i would much rather incoperate it into my bot. Then there will be much less lag and easier to do. Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 6, 2005 Share Posted April 6, 2005 modify this code if you know it will always come$ErrorTitle = "";Type the title in the quotes WinWait ( $ErrorTitle ) Send ( "o" ) ;Type your script hereif it doesn't always come or it doesn't always come at the same time use this code$ErrorTitle = "";Type the title in the quotes AdlibEnable ( "_WinCheck", 10 ) ;Type your script here Func _WinCheck() If WinExists ( $ErrorTitle ) Then WinActivate ( $ErrorTitle ) Send ( "o" ) EndIf EndFunccode is not tested so if you have problems tell me [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
jackyyll Posted April 6, 2005 Author Share Posted April 6, 2005 YES! Thank you so much, works like a charm 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