Jump to content

Adlib function help


ch1234
 Share

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
    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 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)



460px-Thief-4-temp-banner.jpg
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

  • 3 months later...

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...