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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Program to Run/Stary/ Spond while Running

Program to Run/Stary/ Spond while Running

Scheduled Pinned Locked Moved C / C++ / MFC
help
6 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.
  • W Offline
    W Offline
    WinAPILearner
    wrote on last edited by
    #1

    I would like to develope an application in Win32, once run it should stay running and POPUP, when I press Special Keys i.e. Ctrl+Alt+R. Any help is highly appreciated.

    T 1 Reply Last reply
    0
    • W WinAPILearner

      I would like to develope an application in Win32, once run it should stay running and POPUP, when I press Special Keys i.e. Ctrl+Alt+R. Any help is highly appreciated.

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      WinAPILearner wrote: when I press Special Keys i.e. Ctrl+Alt+R. you can look for desktop intercative services WinAPILearner wrote: once run it should stay running Yeah this can be successfuly accomplish using HOTKEYs Use this api RegisterHotKey The RegisterHotKey function defines a system-wide hot key. BOOL RegisterHotKey( HWND hWnd, // handle to window int id, // hot key identifier UINT fsModifiers, // key-modifier options UINT vk // virtual-key code ); ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

      W 1 Reply Last reply
      0
      • T ThatsAlok

        WinAPILearner wrote: when I press Special Keys i.e. Ctrl+Alt+R. you can look for desktop intercative services WinAPILearner wrote: once run it should stay running Yeah this can be successfuly accomplish using HOTKEYs Use this api RegisterHotKey The RegisterHotKey function defines a system-wide hot key. BOOL RegisterHotKey( HWND hWnd, // handle to window int id, // hot key identifier UINT fsModifiers, // key-modifier options UINT vk // virtual-key code ); ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

        W Offline
        W Offline
        WinAPILearner
        wrote on last edited by
        #3

        I could not find anything about: desktop intercative services in CodeProject. I use the function like: iStat = RegisterHotKey(hwnd,77070,MOD_CONTROL && MOD_ALT, VK_R); But I get 'VK_R' : undeclared identifier error? Will appreciate a sample code.

        T 1 Reply Last reply
        0
        • W WinAPILearner

          I could not find anything about: desktop intercative services in CodeProject. I use the function like: iStat = RegisterHotKey(hwnd,77070,MOD_CONTROL && MOD_ALT, VK_R); But I get 'VK_R' : undeclared identifier error? Will appreciate a sample code.

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          WinAPILearner wrote: I use the function like: iStat = RegisterHotKey(hwnd,77070,MOD_CONTROL && MOD_ALT, VK_R); use this RegisterHotKey(this->m_hWnd,77070,MOD_CONTROL|MOD_ALT, 52); or visit http://www.voidnish.com,it has good example For HotKey WinAPILearner wrote: I could not find anything about: desktop intercative services in CodeProject. You look for Services first,DESKTOP_INTRECTIVE_SERVICE is just Argument passed to CreateService when we create Service. advantage of Desktop Intercative service is that it can interect with desktop. you can also go for Hidden Dialog Application ,whichpopup on register Message ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

          W 1 Reply Last reply
          0
          • T ThatsAlok

            WinAPILearner wrote: I use the function like: iStat = RegisterHotKey(hwnd,77070,MOD_CONTROL && MOD_ALT, VK_R); use this RegisterHotKey(this->m_hWnd,77070,MOD_CONTROL|MOD_ALT, 52); or visit http://www.voidnish.com,it has good example For HotKey WinAPILearner wrote: I could not find anything about: desktop intercative services in CodeProject. You look for Services first,DESKTOP_INTRECTIVE_SERVICE is just Argument passed to CreateService when we create Service. advantage of Desktop Intercative service is that it can interect with desktop. you can also go for Hidden Dialog Application ,whichpopup on register Message ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

            W Offline
            W Offline
            WinAPILearner
            wrote on last edited by
            #5

            Dear Mr. Alok Gupta, Thank to you and Void Nish, the HOTKEY is Done. I studied services.I want my application to be in "Windows Notification Area" like MSN Massager. Should I study Services or CreateProcess, or something else? Please Note, my application will run on win 9x/2k/XP. Is not good to not know, and is worse to not ask!

            T 1 Reply Last reply
            0
            • W WinAPILearner

              Dear Mr. Alok Gupta, Thank to you and Void Nish, the HOTKEY is Done. I studied services.I want my application to be in "Windows Notification Area" like MSN Massager. Should I study Services or CreateProcess, or something else? Please Note, my application will run on win 9x/2k/XP. Is not good to not know, and is worse to not ask!

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              WinAPILearner wrote: I want my application to be in "Windows Notification Area" like MSN Massager. yeah FOr that you have create Sytem tray application that very simple. BOOL Shell_NotifyIcon( DWORD dwMessage, PNOTIFYICONDATA lpdata ); or you can .lokk one of my article Shutdown alarm,i have used that concept in that ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

              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