Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Internet Explorer, Flash and OnClick message...

Internet Explorer, Flash and OnClick message...

Scheduled Pinned Locked Moved C#
comadobecollaborationhelptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex Getman
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • A Alex Getman

      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

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      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 the BN_CLICKED message. You will need to the HWND (handle) of the button itself for the SendMessage call as well. You can programmatically iterate through each window using FindWindow. Spy++ may also be of some help to you depending on specific implementation. - Nick Parker
      My Blog | My Articles

      A 1 Reply Last reply
      0
      • N Nick Parker

        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 the BN_CLICKED message. You will need to the HWND (handle) of the button itself for the SendMessage call as well. You can programmatically iterate through each window using FindWindow. Spy++ may also be of some help to you depending on specific implementation. - Nick Parker
        My Blog | My Articles

        A Offline
        A Offline
        Alex Getman
        wrote on last edited by
        #3

        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

        N 1 Reply Last reply
        0
        • A Alex Getman

          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

          N Offline
          N Offline
          Nick Parker
          wrote on last edited by
          #4

          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, a HWND or handle is of data type IntPtr. The SendMessage 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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups