Automated Clicking Problem

Announcements and discussion for PInvoke

Automated Clicking Problem

Postby Dark_NZ » Thu Apr 16, 2009 4:56 am

I am coding up a program for automated testing which randomly clicks an open application window using various User32.dll library calls. My current problem is this, if a click would open a dialog, using Process.WaitForInputIdle() does not wait long enough for that dialog to be detected the next trip around the loop, which means several clicks get cued and if those clicks happen to be on something in the dialog I want to avoid (say an exit button) there is no way of telling that in advance. My question is this. Is there a way of waiting for the process or thread to finish all processing and only be waiting in the message loop again?

I hope that made sense. :)


Posts: 1
Joined: Thu Apr 16, 2009 4:51 am

Return to PInvoke.Net

Who is online

Users browsing this forum: No registered users and 0 guests