Click to See Complete Forum and Search --> : Getting Keypress on timer


Chrispy360
August 17th, 2009, 10:45 AM
Hiya,
Just wondered, does anyone know how to get the ascii of a key press on a timer.
thanks in advance

Shuja Ali
August 17th, 2009, 02:47 PM
Ascii of a keypress can be retrieved using a KeyPress event handler, not in the timer.

Do you want to get ascii of keys pressed even when your application is not in focus?

Chrispy360
August 17th, 2009, 03:34 PM
Yes, basically i have made this program ages ago which simply allows me to look at a drop down list and select a program i want to open. Unfortunately constant changing of programs means its quicker to go to the start menu. Therefore i tried to think of a better way and i wanted to know if there was a way so that when i do a certain key combination, my form which is minimized will be able to open the program i want. For example when i press ctrl + F then Flash CS4 will open etc.
Thanks in advance

Shuja Ali
August 17th, 2009, 03:53 PM
Have you looked at a much simpler way of creating shortcuts in Windows and assigning a specific shortcut key to these?

Chrispy360
August 17th, 2009, 04:06 PM
Yes and there are ways but i like to try and make programs myself which can do random things just for good practice. for example i did a silly program which turned pictures into text, there was no need for it i just like to learn how.
Thanks

dglienna
August 18th, 2009, 12:16 AM
Post the code. It could help someone else!

Chrispy360
August 18th, 2009, 03:41 AM
For which program would you like the code??