Hi, im trying to create something very basic like when a user presses F9 to to something like open internet explorer or to open the cd rom drive. What type of project do I create, and how do I make it run in the background when windows starts?
You can do this with a standard exe project, but it sounds like you want to create a "windows service". Which by the way VB is not really suited for but there are some work arounds.
When you create your standard exe project you will want to add a module and a sub main. Then change the project>properties Start Up Object to sub main.
To accomplish what you want you will need to create a "hook" so you can listen in on the windows keypresses.
Now the easiest way to get your program to start up when windows does is to "create a shortcut" to your exe in the startup folder. There is another way to do this depending upon which OS you are running.
The words above in quotes would be some good search terms for you to search this site with to get you started.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.