Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Override function keys 1

Status
Not open for further replies.

james0264

Programmer
Joined
Mar 1, 2005
Messages
52
Location
GB
I am planning to make a simple program that can override the function keys whilst in focus (opened) and when minimsed. Could you suggest some code to how I can achieve this? Also, how can I, when minimised, make the program minimse into the system tray instead of the standard big one (what ever it's called :S)? Thanks for any help.
 
Please supply me with a solution, if possible but else please guide me through. Thanks. :'(
 
1) - Exactly what keys do you want to disable and for what purpose?
2) - Minimize the program to the system tray, an example can be found at - thread222-920672

instead of the standard big one
For future reference that's called the Taskbar.

Hope this helps

Harleyquinn

---------------------------------
For tsunami relief donations
 
1) I would like the function keys (F1, F2, F3 etc.) to be overridden by a set text (similar to the CTRL - V function) that a user can set.
2) Thanks about the system tray help.
 
When the form is open (and has focus) you could trap the KeyCode (I think the Keycodes for the function keys are between 112 and 123 inclusive) on the KeyDown/KeyUp event of the form (or it's controls) and check if it is a function key and act accordingly. I'm not sure how you would do this if the app is minimized and/or not in focus.

Hope this helps

Harleyquinn

---------------------------------
For tsunami relief donations
 
Well it's better than no help, thanks for trying. what I am trying to achive is the following. My program will be minimsed on the system taskbar so the function keys will not be over riden. I need a code that can over ride the function keys even after minimisation. Sorry about the late reply, but thanks for any help.
 
Might I suggest either Hypetia's hot key solution in thread222-607295 or my code in thread222-775642 (and in the threads it links to), which give a variety of related methods of picking up key and mouse events on a systemwide basis
 
Wow, excellent! That's what I perfectly needed. Thanks so much, here's a star. :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top