Click to See Complete Forum and Search --> : Next Button on Keyboard
CheesyPoofs
November 30th, 2006, 10:34 PM
Ok well i have a next button on my computer for music like for example when i have itunes up i could just press that button on the keyboard and it would go to the next song. In order for it to work, itunes has to have focus and for that i have to open itunes and and then press the button. I was wondering if there is a way for me to make something that when i press that button it would automatically put itunes into focus and then unfocus it after. Or what i would like to do really is when im playing a video i would always have to tab + alt out of the game and do. I want it so i could just press that button and have it skip the song and not interupt the game play. How would i go about doing this. What i would really like to know is what i would have to research in order to accomplish this task. I never really looked into hooks, but thats what i think it is that would complete this task. If i am correct can you please give me some links about hooks and etc.
Thanks
CheesyPoofs
December 7th, 2006, 08:43 PM
Umm...im not sure if this is aloud, but anyways
*Bump*
TheCPUWizard
December 7th, 2006, 09:16 PM
You "could" (but I would strongly recommend against) implement a System Hook which detected the keystroke regardless of the active application....
The problem is what do you do when some other application wants (needs) to process that key?????? :rolleyes:
scathenC
December 8th, 2006, 01:49 AM
hey cheesy,
cpuwizard is right, however i wouldn't worry about the system hook
thing blocking the use of that key to other apps.
Just make a little system hook program that intercepts key-presses
of that particular key. Give it a little dialog or something so that it
can be closed easily, then simply run it before you play games and
close it when you want to remove the hook.
C
CheesyPoofs
December 8th, 2006, 03:35 PM
Okay thanks everyone for putting me on the right track.
Mitsukai
December 8th, 2006, 09:31 PM
did you install your keyboard drivers
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.