Click here to Skip to main content
15,890,506 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help me... Pin
Christian Graus31-Mar-09 19:13
protectorChristian Graus31-Mar-09 19:13 
QuestionNavigatecomplete2Event is not getting fired Pin
svt gdwl31-Mar-09 18:45
svt gdwl31-Mar-09 18:45 
QuestionTimer Pin
yesu prakash31-Mar-09 18:45
yesu prakash31-Mar-09 18:45 
AnswerRe: Timer Pin
Christian Graus31-Mar-09 19:12
protectorChristian Graus31-Mar-09 19:12 
QuestionFTP or Database Connectivity using c# Pin
a.hamidy31-Mar-09 18:30
a.hamidy31-Mar-09 18:30 
AnswerRe: FTP or Database Connectivity using c# Pin
Christian Graus31-Mar-09 18:43
protectorChristian Graus31-Mar-09 18:43 
GeneralRe: FTP or Database Connectivity using c# Pin
a.hamidy31-Mar-09 21:29
a.hamidy31-Mar-09 21:29 
Questionwebbrowser automation with flash content Pin
jeanbern31-Mar-09 18:14
jeanbern31-Mar-09 18:14 
Currently I'm using the following code which works fine for regular websites, it will click at the location in the browser object and everything works perfectly
When I try to use it to click on a flash section of a site however, it doesn't work.
any tips?

[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);

[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr GetWindow(IntPtr hWnd, uint uCmd);

[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);

 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

AnswerRe: webbrowser automation with flash content Pin
Christian Graus31-Mar-09 18:57
protectorChristian Graus31-Mar-09 18:57 
QuestionRe: webbrowser automation with flash content Pin
jeanbern31-Mar-09 19:34
jeanbern31-Mar-09 19:34 
QuestionMouse Up Event Confusion Pin
Hax0r77831-Mar-09 16:50
Hax0r77831-Mar-09 16:50 
AnswerRe: Mouse Up Event Confusion Pin
Christian Graus31-Mar-09 17:14
protectorChristian Graus31-Mar-09 17:14 
QuestionSecured Web Servce and Business Office Programming Pin
ycorre31-Mar-09 14:52
ycorre31-Mar-09 14:52 
QuestionI need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 13:09
VB Noobie31-Mar-09 13:09 
AnswerRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 13:19
protectorChristian Graus31-Mar-09 13:19 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 13:33
VB Noobie31-Mar-09 13:33 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 13:48
protectorChristian Graus31-Mar-09 13:48 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 13:57
VB Noobie31-Mar-09 13:57 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 14:19
protectorChristian Graus31-Mar-09 14:19 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 14:54
VB Noobie31-Mar-09 14:54 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 15:14
protectorChristian Graus31-Mar-09 15:14 
GeneralRe: I need help. I'm a programming noob. Pin
VB Noobie31-Mar-09 15:43
VB Noobie31-Mar-09 15:43 
GeneralRe: I need help. I'm a programming noob. Pin
Christian Graus31-Mar-09 17:13
protectorChristian Graus31-Mar-09 17:13 
Generalupdating a database Pin
c#_novice31-Mar-09 12:23
c#_novice31-Mar-09 12:23 
GeneralRe: updating a database Pin
Colin Angus Mackay31-Mar-09 12:53
Colin Angus Mackay31-Mar-09 12:53 

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.