winapi - Find specific button with Ruby's WIN32API -


I'm working on a Windows C # .net app on some screenplay GUI tests. I am using Ruby to run the test and my leg is officially wet in the area of ​​WIN32API - but I'm definitely not more confident with it, in fact, as a mater, I think I There is no fundamental understanding at this point, at this point, the only way I know that to get access to various controls is to combine control classes and maybe some identifying text Is through.

My problem is that I have a series of applications to test, many buttons - all of which have an icon and no text.

Is there a way that I can use to get a special button? I played it with the notion of doing it through a relative situation, but that kind of waste, and I'm not interested in it.

I have access to the source code; If there is some identity feature / asset which I can set, I am more than willing I am just ignorant at this point.

Unfortunately this is probably not easy, you want to calculate all the windows and their children and "clues "As you would by any kind of button, using Win32api

An example of "telling all windows" can be found in Win32screenshot (search for "window_titles").

-r


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -