auto-dismiss window with certain visible text?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
newcod3r
Posts: 505
Joined: 30 Sep 2021, 02:16

auto-dismiss window with certain visible text?

Post by newcod3r » 24 Oct 2021, 22:37

This app has annoying popups which I want to dismiss. 𝗛𝗼𝘄𝗲𝘃𝗲𝗿, 𝘁𝗵𝗲 𝗽𝗼𝗽𝘂𝗽 𝗵𝗮𝘀 𝘁𝗵𝗲 𝗲𝘅𝗮𝗰𝘁 𝘀𝗮𝗺𝗲 𝘁𝗶𝘁𝗹𝗲/𝗰𝗹𝗮𝘀𝘀/𝗲𝘅𝗲/𝗽𝗶𝗱.

The only difference is in the "Visible Text" when using WinSpy. How do I auto-dismiss it whether in the fore or background?

Rohwedder
Posts: 7644
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: auto-dismiss window with certain visible text?

Post by Rohwedder » 25 Oct 2021, 02:54

Hallo,
If they have different IDs, you can distinguish them by that. Try:

Code: Select all

#Persistent
SetTimer, T, 100
T:
MouseGetPos,,, ID
ToolTip,% "window's unique ID:`n" ID
Return

rhtrjgjs
Posts: 1
Joined: 25 Oct 2021, 11:15

Re: auto-dismiss window with certain visible text?

Post by rhtrjgjs » 25 Oct 2021, 12:32

i have the same problemmm !!!!!



Kodi nox
Last edited by rhtrjgjs on 19 Nov 2021, 08:35, edited 1 time in total.

User avatar
mikeyww
Posts: 26931
Joined: 09 Sep 2014, 18:38

Re: auto-dismiss window with certain visible text?

Post by mikeyww » 25 Oct 2021, 18:10

To get a window's text, use WinGetText. To get the window's size, use WinGetPos. You can then issue commands based on those findings.

Post Reply

Return to “Ask for Help (v1)”