PDA

View Full Version : keyboard programming!


el
10-03-01, 10:36 AM
can I create a program that send signals like I am pressing the keyboard. I have a Dlink monitor/mouse/keyboard switch and to change to the other machine I press scroll lock twice and then the number 1 or 2 depending on which machine I want to switch to. I would like to program one of my M$ keyboard hotkeys to do this and switch automatically. can it be done? Sounds simple but I don't know where to start.

6502kid
10-05-01, 07:21 PM
El,

It might be possible, but that would depend upon if the
hotkey program you are using supports a way to
send keyboard scan codes.

Unlike most of the keys, the scroll lock key doesnt generate
any actual characters or an Ascii code, but sends a keyboard
scan code instead. Not very many programs give you a way
to deal with these.

You might want to search around for a 3rd party utility that
can handle that....

Hope that helps.

el
10-06-01, 02:58 PM
no program just keyboard. I used the vk_scroll in C++ and it didn't work but I will keep trying.

su root
10-07-01, 11:44 AM
any "special key" programs work as software, and turn that "special key code" sent to the OS into the intended result, meaning "Pagedown Pagedown 1" isn't sent over the wire after configuring it, it's a special key code that's changed by the program.

el
10-07-01, 11:34 PM
so you are saying that I can't do it! darn it! maybe I will email the dlink company cuz they probably investigated this at one point or another.

6502kid
10-08-01, 01:46 AM
Do it ! If they aint got a program that does it, make them
write you one.

Let me know if they do it since I was thinking about getting
a switch like that, and that would be a neat feature.

I had a real nice BlackBox A/B switch where I used to work,
but you still had to do some weird keystrokes to switch them.

David
10-10-01, 07:31 AM
Assembly would work but its a heck of a long way round for a short cut!

el
10-10-01, 10:06 PM
yeah I think I will just make my step dad do it cuz he is a mad cracker with like 30years of hacking so it will take him like 5seconds and I have been trying to do this for like 8 hours now!

David
10-12-01, 01:49 PM
Good Luck!

I want to be able to program assembly some time but it is a little bit complicated...I'll stick with C for now. Using the 486 optimisations is as close to assmebly as any HLL will get! (apart from C++ possibly)

TheSpoon
10-18-01, 11:28 AM
Sup?

I have a virtual keyboard program I wrote in VB6. The interface looks like a keyboard, and you send input by pressing the keys w/your mouse. Also, they keys light up when the actual ones on the keybard are pressed. If this would help let me know, and I'll gladly send you the source.

Marc Newlin
Software Developer, UnderCover Software
Kenmore, WA

el
10-18-01, 06:53 PM
you are my hero! I would love to see the program/source. I kinda gave up but now I have new hope! thx

TheSpoon
10-18-01, 07:00 PM
Here's the code.

Good luck!

- Marc Newlin

el
10-18-01, 10:15 PM
thank you I got it maybe others could use it too!