Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: ClickOnce app... contanstly checking for updates? Pin
Mycroft Holmes4-Apr-09 22:48
professionalMycroft Holmes4-Apr-09 22:48 
GeneralRe: ClickOnce app... contanstly checking for updates? Pin
Jacob Dixon5-Apr-09 5:00
Jacob Dixon5-Apr-09 5:00 
GeneralRe: ClickOnce app... contanstly checking for updates? Pin
Mycroft Holmes5-Apr-09 13:03
professionalMycroft Holmes5-Apr-09 13:03 
GeneralRe: ClickOnce app... contanstly checking for updates? Pin
Jacob Dixon5-Apr-09 5:04
Jacob Dixon5-Apr-09 5:04 
QuestionBlackJack using WPF Pin
BenJamming4-Apr-09 16:22
BenJamming4-Apr-09 16:22 
AnswerRe: BlackJack using WPF Pin
Luc Pattyn4-Apr-09 23:06
sitebuilderLuc Pattyn4-Apr-09 23:06 
AnswerRe: BlackJack using WPF Pin
#realJSOP5-Apr-09 3:12
mve#realJSOP5-Apr-09 3:12 
Questionaccessing elements from a webbrowser Pin
jeanbern4-Apr-09 13:28
jeanbern4-Apr-09 13:28 
could anyone tell me how to get the IntPtr handle of a flash element of a site which my webbrowser is focused on?
I'm trying to use SendMessage on the site and it's not working because I need to be sending it to the flash player and not just the webbrowser or something
I can get my clicking to work fine with google but not with flash content

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 << 16) | x); // The coordinates
            
            IntPtr wParam = IntPtr.Zero; // Additional parameters for the click (e.g. Ctrl)
            const uint downCode = 0x201; // Left click down code
            const uint upCode = 0x202; // Left click up code
            SendMessage(handle, downCode, wParam, lParam); // Mouse button down
            SendMessage(handle, upCode, wParam, lParam); // Mouse button up

            System.Drawing.Pen myBrush = new System.Drawing.Pen(System.Drawing.Color.Red);
            Graphics g = two.CreateGraphics();
            Graphics h = one.CreateGraphics();
            h.DrawEllipse(myBrush, new Rectangle(x, y, 5, 5));
            g.DrawEllipse(myBrush, new Rectangle(x, y, 5, 5));


here two is my webbrowser and one is just a transparent form over top of it which I will be using later, I just drew circles on them to tell where the mouse should be clicking, and as I said before, it works for other sites just not flash content
QuestionUsing FTPWebRequet for simple ftp-client on C# Pin
Eugene Efimov4-Apr-09 11:07
Eugene Efimov4-Apr-09 11:07 
AnswerRe: Using FTPWebRequet for simple ftp-client on C# Pin
N a v a n e e t h4-Apr-09 15:59
N a v a n e e t h4-Apr-09 15:59 
GeneralRe: Using FTPWebRequet for simple ftp-client on C# Pin
Eugene Efimov4-Apr-09 20:57
Eugene Efimov4-Apr-09 20:57 
QuestionFile Name Pin
egpuyos4-Apr-09 10:04
egpuyos4-Apr-09 10:04 
AnswerRe: File Name Pin
Christian Graus4-Apr-09 10:50
protectorChristian Graus4-Apr-09 10:50 
AnswerRe: File Name Pin
PIEBALDconsult5-Apr-09 5:45
mvePIEBALDconsult5-Apr-09 5:45 
AnswerRe: File Name Pin
Megidolaon5-Apr-09 20:26
Megidolaon5-Apr-09 20:26 
QuestionHow to set the text of a control to a string from the resx? Pin
ioctl514-Apr-09 9:52
ioctl514-Apr-09 9:52 
Questionsmiley icons(emotion icons) in richtextbox? Pin
shaghyegh4-Apr-09 9:49
shaghyegh4-Apr-09 9:49 
AnswerRe: smiley icons(emotion icons) in richtextbox? Pin
Giorgi Dalakishvili4-Apr-09 9:55
mentorGiorgi Dalakishvili4-Apr-09 9:55 
QuestionConvert a datetime string to different datetime string Pin
AEKirin4-Apr-09 7:41
professionalAEKirin4-Apr-09 7:41 
AnswerRe: Convert a datetime string to different datetime string Pin
Luc Pattyn4-Apr-09 7:48
sitebuilderLuc Pattyn4-Apr-09 7:48 
AnswerRe: Convert a datetime string to different datetime string Pin
PIEBALDconsult5-Apr-09 5:53
mvePIEBALDconsult5-Apr-09 5:53 
QuestionSetOleLocation to CRAXDDRT.OleObject Pin
bahaa_sa54-Apr-09 6:53
bahaa_sa54-Apr-09 6:53 
AnswerRe: SetOleLocation to CRAXDDRT.OleObject Pin
Rajdeep.NET is BACK4-Apr-09 8:04
Rajdeep.NET is BACK4-Apr-09 8:04 
GeneralRe: SetOleLocation to CRAXDDRT.OleObject Pin
bahaa_sa54-Apr-09 8:07
bahaa_sa54-Apr-09 8:07 
QuestionMaking a Button transparent.... help guys! Pin
Rajdeep.NET is BACK4-Apr-09 6:22
Rajdeep.NET is BACK4-Apr-09 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.