A poker application should use the Win32 API, such as SetForegroundWindow(hWnd) , to bring the window to the top when your move.
To detect such a call, you can use the Windbg Script API trace API
You can use it to view the APIs that the application uses from your Windbg without using another tool. If you need more information from the API, just run LogViewer.exe and open the .lgv file, which is automatically created when you use this script.


Output file with the extension .LGV.

LogViewer.exe is part of the debugging tools for Windows. It is in the same place where you installed Windbg. Open the .LGV file with LogViewer.exe:

Source code for API_TRACING.TXT:
$$ $$ ============================================================================= $$ Trace APIs during the Debugging Session. $$ Creates a log on Desktop and Windbg window. $$ To see the more verbose log run logviewer.exe from Debugging Tools for Windows $$ and open the file that has the .lgv extension. $$ This file is inside LogExts on your desktop. $$ $$ Compatibility: Win32, should work on Win64. $$ $$ Usage: $$>< to run the program. $$ $$ Roberto Alexis Farah $$ Blog: blogs.msdn.com/debuggingtoolbox/ $$ $$ All my scripts are provided "AS IS" with no warranties, and confer no rights. $$ ============================================================================= $$ !logexts.loge !logexts.logc e * !logexts.logo ev !logexts.logb p $$ $$ ==================================== $$ Logging is enabled for this process. $$ ====================================
After you have all this information, you will find out which API call to look for from the specific caller / DLL / etc. and , that is, the time of its rotation , the poker window is turned on and you can use this article in the article Find the handle of the TopMost window
source share