bogQ Posted January 14, 2013 Share Posted January 14, 2013 (edited) you can get name of the window with autoit window tool (look in start meny for it) If win dont have name, use its class name obtained form autoit window tool if you do not need Adlib, you can try to rewriten code like this $winname = 'mywinname' While 1 MyFunc() WEnd Func MyFunc() If WinWait($winname) Then If Not WinActive($winname) Then WinActivate($winname) WinWaitActive($winname) EndFunc ;~ ControlSend($winname,'','SomeControllID','{ENTER}') ;~ Send('{ENTER}') ;~ WinKill($winname) WinClose($winname) EndIf EndFunc so try to close with ControlSend, Send, WinKill,WinClose or maybe ProcessClose can work if it suits you Edited January 14, 2013 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
ch1234 Posted May 2, 2013 Author Share Posted May 2, 2013 Just an update with this (for those of you who may be interested). I couldn't close the pop-up 'normally' as it seemed like it was part of the java application. What I mean by that is it was showing up in the Window Info tool as part of the same frame as the rest of the app. So to solve it, I took a screenshot when the box appeared, used GIMP to get the hex code for the box colour and then I created an Adlib function to check a pixel site for the box colour. When it appeared, I moved the mouse into the box and closed it. 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