Jump to content

Custom hotkeys on cncnet 5


weaveR

Recommended Posts

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Here's FunkyFr3sh's hotkeys if anyones interested.

 

[WinHotkeys]
KeySidebarToggle=9
KeyScatter=88
KeyStop=83
KeyGuard=71
KeyNext=78
KeyBase=72
KeyResign=35
KeyAlliance=65
KeyBookmark1=120
KeyBookmark2=32
KeyBookmark3=82
KeyBookmark4=87
KeyRepairToggle=84
KeySellToggle=90
KeyMapToggle=86
KeySidebarUp=68
KeySidebarDown=70
KeyTeam1=49
KeyTeam2=50
KeyTeam3=51
KeyTeam4=52
KeyTeam5=53
KeyTeam6=54
KeyTeam7=55
KeyTeam8=56
KeyTeam9=57
KeyTeam10=48
KeyForceMove1=18
KeyForceMove2=18
KeyForceAttack1=17
KeyForceAttack2=17
KeySelect1=16
KeySelect2=16
KeyScrollLeft=37
KeyScrollRight=39
KeyScrollUp=38
KeyScrollDown=40
KeySelectView=69

 

Edit: Forgot to change some keys also found a few bugs - KeyMapToggle=86 dosen't work and multiplayer dosen't work anymore there is no connecting screen just main menu.

Link to comment
Share on other sites

There's a bug that causes holding Ctrl while pressing some certain alphabetical keys to register as the same internal key value as holding Ctrl while pressingone of the f1-12 keys. It's from 1.06c and I'm not sure if it's a Westwood bug or added by 1.06c.

 

For example in 1.06c holding ctrl+x gives the same effect as holding ctrl+f9.

Link to comment
Share on other sites

I checked Keyboard_Process() and it uses the virtual keycode for the F-keys. It does some modifications to for certain keys to support capital and non-capital letters as ASCII. For example F3 has virtual key value 0x72, the letter 'r' has ASCII code 0x72 and the capital letter 'R' has the value 0x52. For some reason pressing ctrl+R key gives 0x72.

Link to comment
Share on other sites

Hah. Reminds me of the problems I had with arrow keys in my Dune II editor. It turned out that actually, special function keys sent TWO codes; a 00 and THEN their code, which was what differentiated the two. Had to write special code to catch the second "keypress" in case such a 00 was detected.

Link to comment
Share on other sites

I have to fix the caps lock issue RiseOfBane reported but other than those two bugs the code works. Not sure if I'll look into the ctrl+x issue I mentioned. It's vital for being able to use certain hotkeys properly but I don't have time to look into it.

Link to comment
Share on other sites

  • 3 months later...

you got it too, but you have to add the hotkeys to the .ini file on your own now

 

 

[WinHotkeys]

KeySidebarToggle=9

KeyScatter=88

KeyStop=83

KeyGuard=71

KeyNext=78

KeyBase=72

KeyResign=35

KeyAlliance=65

KeyBookmark1=86

KeyBookmark2=32

KeyBookmark3=82

KeyBookmark4=87

KeyRepairToggle=84

KeySellToggle=89

KeyMapToggle=86

KeySidebarUp=68

KeySidebarDown=70

KeyTeam1=49

KeyTeam2=50

KeyTeam3=51

KeyTeam4=52

KeyTeam5=53

KeyTeam6=54

KeyTeam7=55

KeyTeam8=56

KeyTeam9=57

KeyTeam10=48

KeyForceMove1=18

KeyForceMove2=18

KeyForceAttack1=17

KeyForceAttack2=17

KeySelect1=16

KeySelect2=16

KeyScrollLeft=37

KeyScrollRight=39

KeyScrollUp=38

KeyScrollDown=40

KeySelectView=69

 

you probably need to switch Y and Z cause i got  a qwertz keyboard

Link to comment
Share on other sites

  • 3 months later...

I use space for a bookmark and "T" for repair which is right next to "R" which I use as another bookmark so it's fast for me too to use "T" for repair because I can press it quickly

 

So beats the shit out of trying to hit the repair button quickly and missing it then wondering why your building isn't repairing then BOOM lol

Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...