Zydek Posted October 10, 2021 Share Posted October 10, 2021 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? Link to comment Share on other sites More sharing options...
Zydek Posted October 10, 2021 Author Share Posted October 10, 2021 Any ideas?? Link to comment Share on other sites More sharing options...
Nine Posted October 10, 2021 Share Posted October 10, 2021 I do not believe you need to use a DB for such a simple task. I think you should look at WinList function, gather the title into an array and act upon it... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Link to comment Share on other sites More sharing options...
Zydek Posted October 10, 2021 Author Share Posted October 10, 2021 I have to save it in other file, and eerytime I use a program I have to save new data to this Link to comment Share on other sites More sharing options...
Nine Posted October 10, 2021 Share Posted October 10, 2021 1 hour ago, Zydek said: I have to save new data to this What kind of information do you want to save ? Give an example of a few entries you want to keep. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Link to comment Share on other sites More sharing options...
Zydek Posted October 20, 2021 Author Share Posted October 20, 2021 Strings like: "nick12334" idk, wth like this Link to comment Share on other sites More sharing options...
ad777 Posted December 3, 2021 Share Posted December 3, 2021 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 iam ِAutoit programmer. best thing in life is to use your Brain to Achieve everything you want. 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