Internet Explorer, Flash and OnClick message...
-
Hi Gurus, I got some kind of unusual program to do... I am viewing a web page in Internet Explorer 6.0, and I got a flash object in that page. So, I want to ask you if it's technically possible to write program that will send onclick message to the Internet Explorer window? And if it does can you give me some help how to do this thing, please. Or maybe some links would be helpful too...Thanx. :confused: xedom developers team
-
Hi Gurus, I got some kind of unusual program to do... I am viewing a web page in Internet Explorer 6.0, and I got a flash object in that page. So, I want to ask you if it's technically possible to write program that will send onclick message to the Internet Explorer window? And if it does can you give me some help how to do this thing, please. Or maybe some links would be helpful too...Thanx. :confused: xedom developers team
Alex Getman (leTaon) wrote: o, I want to ask you if it's technically possible to write program that will send onclick message to the Internet Explorer window? Yes, you can P/Invoke
SendMessage
and pass theBN_CLICKED
message. You will need to theHWND
(handle) of the button itself for theSendMessage
call as well. You can programmatically iterate through each window usingFindWindow
. Spy++ may also be of some help to you depending on specific implementation. - Nick Parker
My Blog | My Articles -
Alex Getman (leTaon) wrote: o, I want to ask you if it's technically possible to write program that will send onclick message to the Internet Explorer window? Yes, you can P/Invoke
SendMessage
and pass theBN_CLICKED
message. You will need to theHWND
(handle) of the button itself for theSendMessage
call as well. You can programmatically iterate through each window usingFindWindow
. Spy++ may also be of some help to you depending on specific implementation. - Nick Parker
My Blog | My ArticlesThanx for your answer...Could you please give me some links or code samples of SendMessage, HWND and FindWindow usage? Or some articles would be helpfull... xedom developers team
-
Thanx for your answer...Could you please give me some links or code samples of SendMessage, HWND and FindWindow usage? Or some articles would be helpfull... xedom developers team
Alex Getman (leTaon) wrote: Could you please give me some links or code samples of SendMessage, HWND and FindWindow usage? Reading MSDN[^] will be very helpful. In particular,
SendMessage
is documented here[^], however because it is a native method, you will need to use P/Invoke to gain access to it. Reading about the DllImportAttribute Class[^] will be helpful. Also, you can read about P/Invoke here[^]. In .NET, aHWND
or handle is of data typeIntPtr
. TheSendMessage
declaration should look like this:[DllImport("user32.dll")]
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam,
IntPtr lParam);- Nick Parker
My Blog | My Articles