| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 102530 | 2009-08-22 22:22:00 | How (hard) to change hotkeys in code? | Johnnz (7246) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 803469 | 2009-08-22 22:22:00 | Hi all, Not sure on etiquette here, but I'll ask anyway. Got a simple little program called Billy www.sheepfriends.com for playing MP3's off the net the other day (freeware), but am wondering how to go about adjusting the keyboard shortcuts? What I want to be able to have is single key-presses instead of multiple key-presses (for example you have to push Shift-Tab to go to the previous track). I would direct this question at the company/programmer/creator of this software, but it is fairly old and not anyone around to answer questions now it seems. Anyway, I downloaded a program called Resource Tuner and can now open up the .exe file and see all the innards of the program. I found the text refering to Next and Previous Track (for regular control, not global keypress control) where you have to push shift-tab for previous track: (found in RC Data folder, TAPBILLY file) object NextAc: TAction Caption = '&Next' ShortCut = 9 OnExecute = NextAcExecute end object PrevAc: TAction Caption = '&Previous' ShortCut = 8201 OnExecute = PrevAcExecute The thing is I dont know in what language 9 maps to Tab and 8201 maps to Shift-Tab? I mean, how can I find other single keys #'s to replace multikey presses? Also, will changing this code be sufficient or is there more to making these changes than meets my untrained eye? Thanks for any help - I want single keypresses so I can hack a keyboard to make a Stereorack MP3 player like this guy: users.softlab.ntua.gr see "customised keyboard". |
Johnnz (7246) | ||
| 803470 | 2009-08-22 23:03:00 | I just downloaded Billy 1.04k beta and under "Options > Settings... > Global hotkeys" you can set your own shortcut keys. No resource hacking required. | sal (67) | ||
| 803471 | 2009-08-23 02:42:00 | I downloaded that already but it does not display on my screen well (maybe problem with DPI or native resolution of my screen which is uxga), so I cant even read everything in its menus. Also, the colors.ini file does not work in it like it does in the 1.03 version, which I need to make font extra large for a small front panel lcd screen. Finally it is not anywhere near as fast at loading and playing tracks as the previous version. Having said all that I'll go away and have another play with it and my display settings to see if it will work for me. Still like to know what the deal is with those numbers and how they correspond to keystrokes?:confused: Edit: Seems that the slowness I experience was due to the software communicating on startup with autoupdate or last.fm. Anway, the new version is certainly a step forward with Flac and WAV format compatibility, so I'll probably choose it for that alone. Anyone know how to change font, size, color of playlist on v1.04l though? |
Johnnz (7246) | ||
| 803472 | 2009-08-30 10:35:00 | Bump... still wondering about how to do this. I'm sure there be plenty of folks on this here forum what knows how to do this? Tried using the newer version on a different monitor but have not found any settings where you can change fonts and sizes like the first version. |
Johnnz (7246) | ||
| 803473 | 2009-08-30 10:57:00 | Bump... still wondering about how to do this. I'm sure there be plenty of folks on this here forum what knows how to do this? Tried using the newer version on a different monitor but have not found any settings where you can change fonts and sizes like the first version. You'll need access to the source code and compiler to adjust those. |
bob_doe_nz (92) | ||
| 803474 | 2009-08-30 11:09:00 | Bump . . . still wondering about how to do this . I'm sure there be plenty of folks on this here forum what knows how to do this? Tried using the newer version on a different monitor but have not found any settings where you can change fonts and sizes like the first version . Did you read sal's reply? You don't need to mess with the resource strings, the app already allows you to customise them . |
Erayd (23) | ||
| 803475 | 2009-08-30 19:48:00 | Did you read sal's reply? You don't need to mess with the resource strings, the app already allows you to customise them. Yes. The thing is that version.03 allows you to change font colours and sizes with a .ini file, and version .04 allows you to do any hotkeys you want. You can't do both in either version though. I just want to know how the number I spoke of corresponds to a keypress. How can I find out how to change the number to program a different keypress? |
Johnnz (7246) | ||
| 803476 | 2009-08-30 20:05:00 | I just want to know how the number I spoke of corresponds to a keypress. How can I find out how to change the number to program a different keypress?Unless you have the source code, the only option you really have is trial and error mixed with commonsense. You need to look at the strings in the file and see which ones match the hotkeys you're after, and try changing them. You can use something like Resource Hacker for this - judging by your original post, I assume you already have a similar tool available. If you do have access to the source code, your life becomes a lot easier - just examine the source, make any changes you want, and recompile. Edit: Bear in mind that if the binary is encrypted, packed, stripped, or otherwise obfusicated your job will be much harder, and you may not be able to (easily) change it without using a disassembler. |
Erayd (23) | ||
| 803477 | 2009-08-30 22:56:00 | Edit: Bear in mind that if the binary is encrypted, packed, stripped, or otherwise obfusicated your job will be much harder, and you may not be able to (easily) change it without using a disassembler. And bear in mind that disassembling and/or reverse-engineering is skirting pretty close to what is or isn't allowed to be discussed on this forum; might pay to PM Jen or Chill and ask permission to post further. :2cents: |
nofam (9009) | ||
| 803478 | 2009-08-30 23:43:00 | Ah yes, but there's nothing wrong with that post of Erayd's ;) Had advice been offered on the use of Hex Editors etc, that *may* be a different story, but for now everything seems fine IMO :) |
Chilling_Silence (9) | ||
| 1 2 | |||||