Thread: make your own hotkeys?

  1. #1

    Question make your own hotkeys?

    hello all, im a newb and i was wondering how i would put output from programs to the computer as if i had typed the character myself, not just out put to the screen like cout << "not on the screen" << endl; im looking to make my own hotkeys so i can change the volume whil im in one of my games, or if any of you play counter strike make my own buy script.
    my email addy is

  2. #2
    Registered User
    Join Date
    Apr 2002
    so you want to be able to press a key from inside your program that will change the volume?

    1. write some code that will check for the key specified using getchar(),fgetc(), etc.
    2. go to MSDN and look up on multimedia functions. Insert desired code to execute after detection of specified key. This code should basically be an increment to the current volume, which will probably be in hex, so it might take two or three lines, unless the ++ operator will handle-I've never tried but it might work, and then the volumeIncrease function or whatever that passes a handle to the sound device and the new volume.
    I go to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of my race.

    Windows XP consists of 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Establishing 'make clean' with GNU make
    By Jesdisciple in forum C Programming
    Replies: 9
    Last Post: 04-11-2009, 09:10 AM
  2. How to make a Packet sniffer/filter?
    By shown in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2009, 09:51 PM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  4. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 01:05 PM
  5. Replies: 6
    Last Post: 04-20-2002, 06:35 PM