Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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? :(

"Reality is fake, Dreams are for real"
  • *Experts*
Posted

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).

Posted

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.

"Reality is fake, Dreams are for real"
Posted (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 by Diablicolic
"Reality is fake, Dreams are for real"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...