[C#] - How can I use C # I get the position of each element in the program?
Hello :)
Topic say all ;P
For example, let's say the window, the game:
http://i40.tinypic.com/16a6yiw.jpg
And how I can get position eg: Enter Game, Options, Exit Game .... ?
I'v code to check window size:
Code:
IntPtr handle = Class1.WinApi.FindWindow(null, "Tibia");
RECT clientRect = GetClientRect(handle);
MessageBox.Show("Bottom " + clientRect.Bottom, "Info");
MessageBox.Show("Left " + clientRect.Left, "Info");
MessageBox.Show("Right " + clientRect.Right, "Info");
MessageBox.Show("Top " + clientRect.Top, "Info");
Result is:
Bottom: 700
Left: 0
Right: 962
Top: 0
But, now... How i can get position of each button? (Enter game....)
Please help:)