Sign in to follow this  
Followers 0
jackyyll

Closing out of popups

11 posts in this topic

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

Share this post


Link to post
Share on other sites



if @ error then
        send("o")
endif


[font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]

Share this post


Link to post
Share on other sites

i dont think that will work.. because the error is INSIDE the game but is a serperate window..

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  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]

Share this post


Link to post
Share on other sites

None of those work... what if it was like

IfWinActive(Instruction) then

send("o")

Else

??

Endif

Share this post


Link to post
Share on other sites

#7 ·  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]

Share this post


Link to post
Share on other sites

It's real

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

YES! Thank you so much, works like a charm :)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0