Jump to content

Recommended Posts

Posted

Hello everyone!!!

Introducion (this is my first post on forum!):

I've just started coding in autoit (and started coding at all)!!! I find it very interesting, and engaging! I've wrote my first aplication too, and I would like to implement one crucial funcion.

Question:

I would like to write into  some data base (which one can you advice me?), the title of active window (which is variable every time I open it), and then, check in that data base, or in script (Idk what is better), if this title is there, more than once. If there is, close this window, If there isn't- call funcion. How can I get it?

  • 2 weeks later...
  • 1 month later...
Posted
On 10/10/2021 at 11:48 AM, Zydek said:

Hello everyone!!!

Introducion (this is my first post on forum!):

I've just started coding in autoit (and started coding at all)!!! I find it very interesting, and engaging! I've wrote my first aplication too, and I would like to implement one crucial funcion.

Question:

I would like to write into  some data base (which one can you advice me?), the title of active window (which is variable every time I open it), and then, check in that data base, or in script (Idk what is better), if this title is there, more than once. If there is, close this window, If there isn't- call funcion. How can I get it?

i hope this help you!☺️

#include <Array.au3>
Local $title = "Untitled - Notepad"
Local $aArray = WinList($title)
   if $aArray[0][0] > 1 Then
  WinClose($aArray[1][1]);;close if more then once
  Else
     ;;;call function!
   EndIf

 

none

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
  • Recently Browsing   0 members

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