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. Visual Basic
  4. Programmatically popup a menu (seperate thread)

Programmatically popup a menu (seperate thread)

Scheduled Pinned Locked Moved Visual Basic
question
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
    AndrewVos
    wrote on last edited by
    #1

    Hi all. Im trying to popup a menu from a seperate process. The following code can click a menu, but it doesnt affect menus with subitems, which i think is kinda weird. There must be another way. Any ideas? SendMessage(MenusParentWindowHandle,WM_COMMAND,MenusID,IndexOfTheSelectedMenu), Nothing) PS. I changed all the var names for easy readin.


    All Your Source Are Belong To Us!

    A P 2 Replies Last reply
    0
    • A AndrewVos

      Hi all. Im trying to popup a menu from a seperate process. The following code can click a menu, but it doesnt affect menus with subitems, which i think is kinda weird. There must be another way. Any ideas? SendMessage(MenusParentWindowHandle,WM_COMMAND,MenusID,IndexOfTheSelectedMenu), Nothing) PS. I changed all the var names for easy readin.


      All Your Source Are Belong To Us!

      A Offline
      A Offline
      AndrewVos
      wrote on last edited by
      #2

      whoops, MenusID = MenusParentID


      All your source are belong to us!

      1 Reply Last reply
      0
      • A AndrewVos

        Hi all. Im trying to popup a menu from a seperate process. The following code can click a menu, but it doesnt affect menus with subitems, which i think is kinda weird. There must be another way. Any ideas? SendMessage(MenusParentWindowHandle,WM_COMMAND,MenusID,IndexOfTheSelectedMenu), Nothing) PS. I changed all the var names for easy readin.


        All Your Source Are Belong To Us!

        P Offline
        P Offline
        Pravat Maskey
        wrote on last edited by
        #3

        Are you calling Api? If yes then you had called findwindow api ya? then it's simple call another API Findwindowex

        A 1 Reply Last reply
        0
        • P Pravat Maskey

          Are you calling Api? If yes then you had called findwindow api ya? then it's simple call another API Findwindowex

          A Offline
          A Offline
          AndrewVos
          wrote on last edited by
          #4

          The FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window. This function does not perform a case-sensitive search. What i want to do is something entirely different. Nice try though.


          All your source are belong to us!

          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