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. Hot keys

Hot keys

Scheduled Pinned Locked Moved C#
questionhelp
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.
  • P Offline
    P Offline
    Prashant Gadhave
    wrote on last edited by
    #1

    In the project I am working on ,I have one exe running 24*7 on Kiosk and its size is FullScreen. I need to start one exe (login application)as soon as I press Alt+Ctrl+A key on keyboard.How can I do it?Any help please.It's urgent. Thank you.

    L 1 Reply Last reply
    0
    • P Prashant Gadhave

      In the project I am working on ,I have one exe running 24*7 on Kiosk and its size is FullScreen. I need to start one exe (login application)as soon as I press Alt+Ctrl+A key on keyboard.How can I do it?Any help please.It's urgent. Thank you.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Use event KeyDown :

      private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
      {
      if(e.KeyCode == Keys.A && (e.Control && e.Alt))
      {
      MessageBox.Show("Hello");
      }
      }

      P 1 Reply Last reply
      0
      • L Lost User

        Use event KeyDown :

        private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
        {
        if(e.KeyCode == Keys.A && (e.Control && e.Alt))
        {
        MessageBox.Show("Hello");
        }
        }

        P Offline
        P Offline
        Prashant Gadhave
        wrote on last edited by
        #3

        My exe is running in the background so ,it is not having focus .So this solution does not work .I need a solution in which even if my exe is running in the background ,captures the hotkey combination and does it,s prdicede task.

        L 1 Reply Last reply
        0
        • P Prashant Gadhave

          My exe is running in the background so ,it is not having focus .So this solution does not work .I need a solution in which even if my exe is running in the background ,captures the hotkey combination and does it,s prdicede task.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Try this (C++): http://www.ragestorm.net/snippet?id=65

          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