0

I'm using FindWindow , and SetForegroundWindow from the Win32 API within via pinvoke C#. The window is a screen with scrolling text, thats updated randomly, I want to be able to detect when just the specific window has been updated. I'm new to C# how can i do this?

pyCthon
  • 11,746
  • 20
  • 73
  • 135

1 Answers1

1

You can use the GetWindowText from User32 if it's a specific control you are trying to monitor for changes.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633520(v=vs.85).aspx

Another method would be to take a screenshot of the window, and compare the last image with the current image to detect changes.

Capture screenshot of active window?

Community
  • 1
  • 1
Walk
  • 1,136
  • 8
  • 8