Jump to content

[REQ] Enter Button

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
InvisibleMan

InvisibleMan

    Newbie

  • Members
  • Pip
  • 1 posts
Hello can anybody make me a "simulating the enter button"

I want a little program that i can open and all it has on it is a enter button which works the same as the "Enter Key"

A Bit like the On-Screen Keyboard but just an enter button.


Can anybody help me.

It is for windows vista. I also would like it to ork on windows XP as well, But if not just windows Vista.


Thanks, Invisible

#2
roboticforest

roboticforest

    Programmer

  • Members
  • PipPipPipPip
  • 110 posts
I'm going to quote something I found on a different forum in the hopes that it helps you.

Quote

keybd_event will do that.

API: keybd_event Function ()

Code Sample: CodeProject: Keyboard Events Simulation using keybd_event() function. Free source code and programming help

For certain events (like powering off the device), you have to do a specific keybd_event sequence. For example:

keybd_event(VK_OFF, 0, 0, 0);
keybd_event(VK_OFF, 0, KEYEVENTF_KEYUP, 0);

This will turn off the device. Simply doing one of those events won't turn off the device. Most keys however, don't need specific action to work properly.

Hopefully the documentation on the links listed here will be more than enough for your needs.
Dave