Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to get the keys that are pressed at boot time. How to track which key was pressed, at boot time. Is there any option other than device-drivers?
Posted
Comments
Mehdi Gholam 3-Jun-15 5:59am    
Why?
Sam L 3-Jun-15 8:51am    
I am just told to obtain information of a pressed key & forward it. Depending on the data I forward, there might be some work to be done. I just need to obtain which key was pressed at boot time. If user presses 'A' then I should be able to get that value.
Andy Lanng 3-Jun-15 5:59am    
At boot-time, the only processes that can run are bootstrap programs. These include the bios program and driver loaders. The drivers are not actually loaded until the boot is complete.

You can look into Kernal level programming but I wouldn't bother. There must be an easier way to achieve what you need than rewriting the OS.

What do you need?
Sam L 3-Jun-15 6:53am    
I am totally new to such kind of programming. I am just told to obtain information of a pressed key & forward it. I just need to obtain which key was pressed at boot time. If user presses 'A' then I should be able to get that value.
ZurdoDev 3-Jun-15 7:41am    
1. Reply to comment so user is notified.
2. No, at boot time, there is no way to do it. Later on, yes, but not right at boot time. Unless you write your own BIOS.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900