|
-
March 3rd, 2007, 06:26 PM
#1
Enabling shortcut keys when program does not have focus
Hi
Does anyone know of a way of defining shortcut keys which will work even if the program does not have focus?
I am trying to write a C++ program which takes a screen capture of another program. When I press a button I want my C++ program to take a screen capture even though the program I am capturing has the focus.
Cheers
Robbie
-
March 4th, 2007, 12:42 AM
#2
Re: Enabling shortcut keys when program does not have focus
- Sreehari
"Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
" Everybody is sent to Earth on a purpose. I am so Lagging behind that i won't die." – Calvin
-
March 4th, 2007, 04:05 AM
#3
Re: Enabling shortcut keys when program does not have focus
-
March 4th, 2007, 04:45 AM
#4
Re: Enabling shortcut keys when program does not have focus
No need for any type of hooking to do this.
Just use RegisterHotKey.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|