View Full Version : Need to be able to send Break codes.
djcarl
August 26th, 2003, 11:25 AM
How does girder send the keyboard codes?
I need to be able to send the break codes for keystrokes.
"'Break' scancodes for PC/AT computers
Most PC's made since about 1989 use keyboards that generate AT scancodes (Though the codes may be converted to XT scancodes in the BIOS). The 'break' code for AT class scancodes is simply the 'make' code preceded by hex F0. For example the scancodes generated when the Escape key is pressed and released are 76 F0 76. "
I need to setup the keypress and after a determined time send the break code. Then repeat if the key is still being pressed on the remote. They software I'm using is looking for the F0 hex code that comes from a real keyboard. I have yet to find remote control software that will do this. Is there a plug-in of method of doing this from the software.
Thanks.
Does this make sense to everyone?
Mark F
August 27th, 2003, 02:41 AM
Yes, it makes sense. ;)
However, modern Windows applications don't normally care about scan codes as there is no reason to be that device dependant any more. They normally watch for WM_KEYDOWN and WM_KEYUP messages. Does this application not watch for those messages? Or does Girder just not generate the WM_KEYUP message?
djcarl
August 27th, 2003, 03:13 AM
Hey Mark,
Your right, the software is looking for the WM_Keydown and WM_Keyup messages. I'm assuming Girder is sending the WM_ commands as the software sees the keydown and the key-up right away but does it so fast that nothing happens. When I talked to the software guys they said the volume control on their program (They do not use the windows sound card mixer controls) watches for hotkeys (in this case volume for MP3 player-#1 is "A" vol-up and "S" is volume down. When it sees the key down it starts a timer and if it does not see the keyup it will start to change the volume in increments up/down. Each increment is increased a little (larger step) the longer the key is held down and no keyup is seen. The longer you hold the faster the slider works. Hence you can see my problem. When I use girder I have to program 25 "A" in the sentence line and had to remove the delay in the serial plugin to nothing "0" and string that to get the program to see it.
So my guess is that Girder is sending the keydown but is also sending the keyup to fast to really work.
If this is true then I would need to split up the keydown and keyup into two lines of event strings with a delay between them. Then somehow reduce the delay if I keep the remote button down.....
Do you or Ron have a method of checking this for a way for me to test this?
I have the x10 mouse remote. I've tried this in Max10 and have the same problem except they are not sending the keyup. When I press the vol-down on the remote it sends the programs slider all the way down (even if I release the button). I cannot use the vol-up. They only way to fix the remote is to physically use the keyboard to reset the key-up the software is looking for then I can repeat the process.
It looks like I need to seperate the keydown and keyup messages in Girder to get this to work.... Anyone know how this can be done?
djcarl
August 28th, 2003, 12:01 PM
Mark - Ron.....
Does Girder use the Keydown and Keyup combination for each key push?
Can I seperate them if they are and put a delay between them.....
Thanks for your help.
Mark F
August 28th, 2003, 12:08 PM
That is a Q for Ron. Sorry.
djcarl
September 8th, 2003, 06:01 PM
Bump.....
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.