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 / C++ / MFC
  4. Remote control

Remote control

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
2 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.
  • T Offline
    T Offline
    Tomaz Rotovnik
    wrote on last edited by
    #1

    Hello I would like to build c++ application from which I can control office application - power point show. I just want to rotate slides in PowerPoint by simulating left and right arrow. With CreateProcess function I firstly open my application (*.pps). Then I use EnumWindow function to get window handle of my application. Is this window handle correct one? Should I search for child window? I found out that there is no child window for my application (EnumChildWindow). Why? I try to send message like: SendMessage(apphwnd,WM_KEYDOWN,VM_RIGHT,1), but unfortunately nothing happen. I'm sorry if I posted message on wrong board. Tomaz Tomaz Rotovnik

    B 1 Reply Last reply
    0
    • T Tomaz Rotovnik

      Hello I would like to build c++ application from which I can control office application - power point show. I just want to rotate slides in PowerPoint by simulating left and right arrow. With CreateProcess function I firstly open my application (*.pps). Then I use EnumWindow function to get window handle of my application. Is this window handle correct one? Should I search for child window? I found out that there is no child window for my application (EnumChildWindow). Why? I try to send message like: SendMessage(apphwnd,WM_KEYDOWN,VM_RIGHT,1), but unfortunately nothing happen. I'm sorry if I posted message on wrong board. Tomaz Tomaz Rotovnik

      B Offline
      B Offline
      Branislav
      wrote on last edited by
      #2

      First, you work with two diferent instance. Because of that SendMessage doesn't work. Try to know more about instances and exist several approach (InitInstance(), FindWindow() or EnumWindow(), ExitInstance(), Mutex, registry etc).

      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