Hi,
with Winamp still very much in use and immensely popular, those of you with a 634 LCD module may feel you`re missing out with the keypad controls others are utilising. Well, fear not, all that is about to change here and now. Those with other LCD modules such as the 631, 632, 633 and the 635 can still use the same method as a valued addition to the number of keys on the keypad. Using a wireless keyboard at 6' away, for example, to control your LCD/LCD`s is quite an achievement-if a rather big remote control!!!![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
In CC2, their is a little known feature of keyboard control. This works perfectly, except that it isn`t implemented by the normal screens but by a more high level means. That is manipulating the cc2_service.ini file and adding a cc2_keyboard.ini file manually. Thanks to JC634 for initially working this out. Read through and see if you want to try the work anyway, its well worth the small effort.
(1) Every job that CC2 does is governed by an ID number, a generator is included in CC2. Mine is in this path.....
C:\Program Files\CrystalControl2\random-id-gen
But working examples will be furnished at the end of this section. The ID numbers are specific to that job and should not have been copied from any other location in CC2.
(2) Every keypress on the keyboard reports a key number. A key tester is included in CC2 to test for this output. Mine is in this path.....
C:\Program Files\CrystalControl2\key-tester
Again, examples are provided as well as implementation routines.
(2a) My key tester reports the following four key codes for the cursor keys on the keypad portion of the keyboard (I use the normal Up/Down buttons for screen up/down).
key 8 (up arrow)=0048
key 2 (down arrow)=0050
key 4 (left arrow)=004b
key 6 (right arrow)=004d
Now, for differentiation between these keys used in say Excel and this feature I also tested the 'alt' key for a code, so both keys would then be pressed to get the result.
alt key=0038
Copy the supplied cc2_keyboard.ini and paste it into the cc2 service folder, mine is installed in this path.....
C:\Program Files\CrystalControl2\cc2-service
Now, you can open this in notepad and see the way the codes are implemented along with the additional use of the 'alt' key. So, at a later date you will know how to add to this file with more generated codes for keypresses, thereby adding more features.
You can also see the ID numbers, taken from the ID generator and allocated to each code or set of codes (keypress+alt or keypress only).
(3) Now, we come to the crucial part. We need to modify the current cc2_service.ini 'header' so it`s best to make a copy of it and place in a folder in a safe place. If we make a mess then its a simple job to replace it, restart CC2 and we`re back to normal. Mine is in the path.....
C:\Program Files\CrystalControl2\cc2-service
(3a) With this done, we locate the portion of the module we need. Now, if you only have one LCD module then the module number will be M0. I have 3 so I use M00, M01 and M02 with my 631, 634 and 635 in that order. I installed them in that order so the M numbers are sequential. However, I have had the 631 as M02 before so be careful, though their is a descriptor in there telling us which module it is. If you open the file with notepad you will see the M numbers (mod numbers). The S numbers are Screen numbers with S01, S02, S03 etc up to the amount of screens you have. Now the section of this file we are interested in is the part before the S0, S01 numbers start. This is the header section and where we carefully paste in the amended section of code.
I will describe the changes in detail in each of the two examples to be downloaded.
with Winamp still very much in use and immensely popular, those of you with a 634 LCD module may feel you`re missing out with the keypad controls others are utilising. Well, fear not, all that is about to change here and now. Those with other LCD modules such as the 631, 632, 633 and the 635 can still use the same method as a valued addition to the number of keys on the keypad. Using a wireless keyboard at 6' away, for example, to control your LCD/LCD`s is quite an achievement-if a rather big remote control!!!
In CC2, their is a little known feature of keyboard control. This works perfectly, except that it isn`t implemented by the normal screens but by a more high level means. That is manipulating the cc2_service.ini file and adding a cc2_keyboard.ini file manually. Thanks to JC634 for initially working this out. Read through and see if you want to try the work anyway, its well worth the small effort.
(1) Every job that CC2 does is governed by an ID number, a generator is included in CC2. Mine is in this path.....
C:\Program Files\CrystalControl2\random-id-gen
But working examples will be furnished at the end of this section. The ID numbers are specific to that job and should not have been copied from any other location in CC2.
(2) Every keypress on the keyboard reports a key number. A key tester is included in CC2 to test for this output. Mine is in this path.....
C:\Program Files\CrystalControl2\key-tester
Again, examples are provided as well as implementation routines.
(2a) My key tester reports the following four key codes for the cursor keys on the keypad portion of the keyboard (I use the normal Up/Down buttons for screen up/down).
key 8 (up arrow)=0048
key 2 (down arrow)=0050
key 4 (left arrow)=004b
key 6 (right arrow)=004d
Now, for differentiation between these keys used in say Excel and this feature I also tested the 'alt' key for a code, so both keys would then be pressed to get the result.
alt key=0038
Copy the supplied cc2_keyboard.ini and paste it into the cc2 service folder, mine is installed in this path.....
C:\Program Files\CrystalControl2\cc2-service
Now, you can open this in notepad and see the way the codes are implemented along with the additional use of the 'alt' key. So, at a later date you will know how to add to this file with more generated codes for keypresses, thereby adding more features.
You can also see the ID numbers, taken from the ID generator and allocated to each code or set of codes (keypress+alt or keypress only).
(3) Now, we come to the crucial part. We need to modify the current cc2_service.ini 'header' so it`s best to make a copy of it and place in a folder in a safe place. If we make a mess then its a simple job to replace it, restart CC2 and we`re back to normal. Mine is in the path.....
C:\Program Files\CrystalControl2\cc2-service
(3a) With this done, we locate the portion of the module we need. Now, if you only have one LCD module then the module number will be M0. I have 3 so I use M00, M01 and M02 with my 631, 634 and 635 in that order. I installed them in that order so the M numbers are sequential. However, I have had the 631 as M02 before so be careful, though their is a descriptor in there telling us which module it is. If you open the file with notepad you will see the M numbers (mod numbers). The S numbers are Screen numbers with S01, S02, S03 etc up to the amount of screens you have. Now the section of this file we are interested in is the part before the S0, S01 numbers start. This is the header section and where we carefully paste in the amended section of code.
I will describe the changes in detail in each of the two examples to be downloaded.
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Last edited: