←back to thread

1192 points gniting | 2 comments | | HN request time: 0.468s | source
Show context
cheschire ◴[] No.43519772[source]
Can windows apps (not installed from the MS store) enumerate through the window titles of all open windows? How hard would it be for an app to monitor all of your web traffic based on the title alone?

Legit question. ChatGPT isn't super helpful here since it agrees with everything when I'm really looking for someone to say why this isn't really feasible in the real world.

replies(8): >>43519783 #>>43519798 #>>43519847 #>>43519871 #>>43520382 #>>43520475 #>>43521311 #>>43521404 #
1. edoceo ◴[] No.43519798[source]
Yep, not difficult at all.

This prompt got me some mostly looks OK Python

> Can you make a simple windows program that will get all the window titles from active programs running

replies(1): >>43520177 #
2. halfcat ◴[] No.43520177[source]
Definitely possible. This is how chat bots worked on AOL in the 90’s, basically the FindWindow and FindWindowEx functions in the win32 API. Hasn’t changed much (if any) since then.