

The window title is Error, There is a sub window under this window, The subwindow title is Edit, The text in the subwindow is : Failed to initialize Direct3D. Īccording to the above operation, We can know : Use Spy++ analysis Error Window information. (2) open function, Enter the registration command ,ģ2 Bit system : regsvr32 c:\WINDOWS\system32\COMCT元2.OCXĦ4 Bit system : regsvr32 c:\Windows\SysWOW64\COMCT元2.OCX 32 position XP, So put it in c:\WINDOWS\system32 in. (1) take COMCT元2.OCX File copy to C disc In the following table of contents :32 Bit system : c:\WINDOWS\system32 64 Bit system : c:\Windows\SysWOW64Īs follows, Because I am. OCX Files need to be registered, register. The software also supports getting list control data, Such as task manager 、 Stock market data, etc, It also supports getting tree views 、 A drop-down box 、 List box and menu data and font information, etc. You can get the parent window and the brother window 、 Sub window structure and form handle tree, You can also adjust the state and behavior of the window, Get the program path 、 Take a picture of the window, etc. You can display window handles in hexadecimal and decimal 、 Window style and class style, etc. Can detect 32 Bit and 64 Bit application. Spy++ Lite It's a programming aid with rich functions, It is suitable for getting window handle and analyzing form structure. So here I'm going to use theta Spy++ Lite, Only a few hundred K size, Very light. Net Framework Desktop applications do, So here's how to C# Capture in Windows The problem with the window, Here's my implementation. That, We're not sure how many users have this problem, So we need to report the data, Add logic detection to the downloader, When the downloader starts Unity In the game, wait for 2 second, To determine if there is Error window, If there is, Capture the window and take out the text inside, Escalate to server, Convenient for data analysis and statistics. exe The running times are as follows Error. Stay XP In the middle of the test, Unity game. QQ The process of starting the game in the game hall is like this :ġ QQ Game hall. The project is Unity Developed, It's on the shelf QQ Game hall, Compatibility required XP System.

Four 、 appendix :Windows Window message.and 、C# adopt Windows API Capture window, Get window text
