Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Programming Talk / C# - Force a click at (X,Y)

Author
Message
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 6th May 2008 22:47
Watch me figure this out soon as I post this...
I spent many-a-hour looking for a solution to this...
I'm loading a Flash application that has a button into my C# winform using the WebBrowser control. I want to be able to click the button on the Flash Application by clicking a winform button or hitting a keyboard key. I searched google and found this:



In theory I should be able to do this:


But it won't work. I've had it click on different things, like different winform buttons and panels and stuff, and it seems to work fine with them. I even tried to throw in the Thread sleep thing, to see if it was just clicking to fast... but nope... no good.

Anyone have an alternitive? if I could even load the SWF file and have my program tell it to click the button or whatever, I guess that would work, but all I could find for that is WHAT is in the SWF file (like how many buttons and stuff like that) but nothing that will letme force a button to click.

Thanks!

[center]

Login to post a reply

Server time is: 2025-06-01 09:34:45
Your offset time is: 2025-06-01 09:34:45