Jump to content
Sign in to follow this  

Adlib function help

Recommended Posts

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

Func MyFunc()
    If WinWait($winname) Then
        If Not WinActive($winname) Then
;~         ControlSend($winname,'','SomeControllID','{ENTER}')
;~         Send('{ENTER}')
;~         WinKill($winname)

so try to close with ControlSend, Send, WinKill,WinClose or maybe ProcessClose can work if it suits you

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - 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.


Share this post

Link to post
Share on other sites

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.

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  

  • Create New...