pitoloko
2014-12-20 02:44:38
Hello
Recentlly I've asked a question on other site about How I could set the default keyboard shortcuts for an specific program (WinAmp music player), and one guy have recommend me to use a resource editor to edit the accelerator table.
This is the executable where I was testing the changes (I share it unmodified):
https://www.mediafire.com/?kjtw88swpkmh8ll
Well, the executable comes with 3 accelerator tables, I would like to change the "B" key behavior to an "M" key, I've ensured that does not exists any ther "M" key association in any of the three accelerator tables.
After I've edited the "B" key to "M", just a simple and easy change using the edit mode of Restorator GUI, winamp loosses all the acceleator capabilities, all. the "B" does not works, the "M" does not works. Something goes wrong when I've edited the accelerator key.
But I'm sure is not my fault, because I tried to reproduce the same change in ResourceHacker, and it worked perfectlly.
What could be the problem?
I noticed that Restorator seems to generate a wrong accelerator resource, this is the content before any edit:
And this is the resulting content after Restorator edit, the virtual key codes are wrong typed and treated as a string?, why happens this?:
EDIT: The unique change that I manually did on the accelerator table is change the "B" to an "M" and as I said I did it using the edit mode of Restorator, but after saving the changes it is written like that... if I'm not missing anything then this seems obviouslly a bug.
Recentlly I've asked a question on other site about How I could set the default keyboard shortcuts for an specific program (WinAmp music player), and one guy have recommend me to use a resource editor to edit the accelerator table.
This is the executable where I was testing the changes (I share it unmodified):
https://www.mediafire.com/?kjtw88swpkmh8ll
Well, the executable comes with 3 accelerator tables, I would like to change the "B" key behavior to an "M" key, I've ensured that does not exists any ther "M" key association in any of the three accelerator tables.
After I've edited the "B" key to "M", just a simple and easy change using the edit mode of Restorator GUI, winamp loosses all the acceleator capabilities, all. the "B" does not works, the "M" does not works. Something goes wrong when I've edited the accelerator key.
But I'm sure is not my fault, because I tried to reproduce the same change in ResourceHacker, and it worked perfectlly.
What could be the problem?
I noticed that Restorator seems to generate a wrong accelerator resource, this is the content before any edit:
Code: Select all
1373 ACCELERATORS
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
VK_F4, 40224, NOINVERT, CONTROL, VIRTKEY
VK_NUMPAD4, 40044, NOINVERT, VIRTKEY
VK_Z, 40044, NOINVERT, VIRTKEY
VK_Z, 40154, NOINVERT, CONTROL, VIRTKEY
VK_Z, 40144, NOINVERT, SHIFT, VIRTKEY
VK_NUMPAD5, 40045, NOINVERT, VIRTKEY
VK_X, 40045, NOINVERT, VIRTKEY
VK_C, 40046, NOINVERT, VIRTKEY
VK_V, 40047, NOINVERT, VIRTKEY
VK_V, 40157, NOINVERT, CONTROL, VIRTKEY
VK_V, 40147, NOINVERT, SHIFT, VIRTKEY
VK_B, 40048, NOINVERT, VIRTKEY
VK_NUMPAD6, 40048, NOINVERT, VIRTKEY
VK_B, 40158, NOINVERT, CONTROL, VIRTKEY
VK_B, 40148, NOINVERT, SHIFT, VIRTKEY
VK_I, 40320, NOINVERT, ALT, CONTROL, VIRTKEY
VK_3, 40188, NOINVERT, ALT, VIRTKEY
VK_S, 40219, NOINVERT, ALT, VIRTKEY
VK_NUMPAD9, 40060, NOINVERT, VIRTKEY
VK_RIGHT, 40060, NOINVERT, VIRTKEY
VK_L, 40187, NOINVERT, SHIFT, VIRTKEY
VK_INSERT, 40187, NOINVERT, VIRTKEY
VK_L, 40185, NOINVERT, CONTROL, VIRTKEY
VK_NUMPAD0, 40185, NOINVERT, CONTROL, VIRTKEY
VK_X, 40185, NOINVERT, CONTROL, VIRTKEY
VK_R, 40395, NOINVERT, SHIFT, VIRTKEY
VK_L, 40029, NOINVERT, VIRTKEY
VK_NUMPAD0, 40029, NOINVERT, VIRTKEY
VK_X, 40029, NOINVERT, SHIFT, VIRTKEY
VK_R, 40022, NOINVERT, VIRTKEY
VK_S, 40023, NOINVERT, VIRTKEY
VK_NUMPAD1, 40197, NOINVERT, VIRTKEY
VK_NUMPAD3, 40195, NOINVERT, VIRTKEY
VK_J, 40194, NOINVERT, VIRTKEY
VK_DECIMAL, 40194, NOINVERT, VIRTKEY
VK_A, 40019, NOINVERT, CONTROL, VIRTKEY
VK_F3, 40318, NOINVERT, VIRTKEY
VK_F5, 40291, NOINVERT, VIRTKEY
VK_LEFT, 40061, NOINVERT, VIRTKEY
VK_NUMPAD7, 40061, NOINVERT, VIRTKEY
VK_DOWN, 40059, NOINVERT, VIRTKEY
VK_NUMPAD2, 40059, NOINVERT, VIRTKEY
VK_NUMPAD8, 40058, NOINVERT, VIRTKEY
VK_UP, 40058, NOINVERT, VIRTKEY
VK_E, 40186, NOINVERT, CONTROL, VIRTKEY
}
Code: Select all
1373 ACCELERATORS
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
VK_F4, 40224, CONTROL, VIRTKEY
"4", 40044
"Z", 40044
VK_Z, 40154, CONTROL, VIRTKEY
VK_Z, 40144, SHIFT, VIRTKEY
"5", 40045
"X", 40045
"C", 40046
"V", 40047
VK_V, 40157, CONTROL, VIRTKEY
VK_V, 40147, SHIFT, VIRTKEY
"M", 40048
"6", 40048
VK_B, 40158, CONTROL, VIRTKEY
VK_B, 40148, SHIFT, VIRTKEY
VK_I, 40320, ALT, CONTROL, VIRTKEY
VK_3, 40188, ALT, VIRTKEY
VK_S, 40219, ALT, VIRTKEY
"9", 40060
VK_RIGHT, 40060, VIRTKEY
VK_L, 40187, SHIFT, VIRTKEY
VK_INSERT, 40187, VIRTKEY
VK_L, 40185, CONTROL, VIRTKEY
VK_0, 40185, CONTROL, VIRTKEY
VK_X, 40185, CONTROL, VIRTKEY
VK_R, 40395, SHIFT, VIRTKEY
"L", 40029
"0", 40029
VK_X, 40029, SHIFT, VIRTKEY
"R", 40022
"S", 40023
"1", 40197
"3", 40195
"J", 40194
VK_DECIMAL, 40194, VIRTKEY
VK_A, 40019, CONTROL, VIRTKEY
VK_F3, 40318, VIRTKEY
VK_F5, 40291, VIRTKEY
VK_LEFT, 40061, VIRTKEY
"7", 40061
VK_DOWN, 40059, VIRTKEY
"2", 40059
"8", 40058
VK_UP, 40058, VIRTKEY
VK_E, 40186, CONTROL, VIRTKEY
}