Diablicolic Posted August 9, 2003 Posted August 9, 2003 Suppose I was playing a good game of minesweeper in fullscreen mode. (I know that's not possible lol but oh well). And when I press: F11, I want my application form to KNOW that I pressed F11, and sends a messagebox to the user. I know how to use the keydown event, but how would I do this? would KeyPreview work in this scenerio? :( Quote "Reality is fake, Dreams are for real"
*Experts* Volte Posted August 9, 2003 *Experts* Posted August 9, 2003 You would need to initialize a system-wide keyhook. Since it is possible to abuse functionality like this to create trojan type programs, you most likely will not find much help on the matter here. However, if you search on Google, I'm sure you'll probably come up with something (for VB.NET or otherwise, but it should all be similar in the end). Quote
Diablicolic Posted August 9, 2003 Author Posted August 9, 2003 Well to tell you the truth, heheh :) I was going to create a bot program to do stuff in Diablo II, and when I wanted to end the bot program, I could just press F11 or something. But you're right, thanks the for the help though. Quote "Reality is fake, Dreams are for real"
Leaders dynamic_sysop Posted August 9, 2003 Leaders Posted August 9, 2003 if you want to end your program with F11 , cant you set your KeyPreview to true, then when the key F11 gets pressed tell the app to close? Quote
Diablicolic Posted August 9, 2003 Author Posted August 9, 2003 (edited) But I have Diablo II on fullscreen. My application is behind Diablo II, not on focus. --------- I also wanted to use this keyread thing for Diablo II. I wanted to record the Mouse cursor coordinates to see where is where when forcing the mouse cursor to a certain area of the screen. Do fullscreen games change mouse cursor coordinates, compared to the regular desktop? Edited August 9, 2003 by Diablicolic Quote "Reality is fake, Dreams are for real"
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.