Jump to content

Recommended Posts

Posted

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"?

Posted

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

Posted (edited)

pseudo-code - may be glaring errors.....

if winexists(title) = 1 then
    send ("o")
else
    exitloop 2
endif
Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted (edited)

is the window real or fake?

Edited 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]

Posted

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.

Posted

modify this code if you know it will always come

$ErrorTitle = "";Type the title in the quotes
WinWait ( $ErrorTitle )
Send ( "o" )
;Type your script here

if 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
EndFunc

code 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]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...