C# Programming
03-29-2009, 06:59 AM
currently I am using the following code and it works when the site I'm trying to click on is a regular site.
But it's not working for the site I want it to, which is a flash game, I don't think the game recognizes that a click is being sent to it because it doesn't respond
int x = 283; // X coordinate of the click
int y = 342; // Y coordinate of the click
IntPtr handle = two.Handle;
StringBuilder className = new StringBuilder(100);
while (className.ToString() != "Internet Explorer_Server") // The class control for the browser
{
handle = GetWindow(handle, 5); // Get a handle to the child window
GetClassName(handle, className, className.Capacity);
}
IntPtr lParam = (IntPtr)((y
But it's not working for the site I want it to, which is a flash game, I don't think the game recognizes that a click is being sent to it because it doesn't respond
int x = 283; // X coordinate of the click
int y = 342; // Y coordinate of the click
IntPtr handle = two.Handle;
StringBuilder className = new StringBuilder(100);
while (className.ToString() != "Internet Explorer_Server") // The class control for the browser
{
handle = GetWindow(handle, 5); // Get a handle to the child window
GetClassName(handle, className, className.Capacity);
}
IntPtr lParam = (IntPtr)((y