DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

custom keys

Started by rccon, April 04, 2013, 05:16:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rccon

I use ctrl alt D to open designcad, but it doesn't work when designcad is already open so, to open a new instance of the program I have to go to the desktop and click on the icon. I found that this is because ctrl alt D is assigned to show/hide command dialog. There seems to be no way to bring this up in the options/keyboard window so I can't remove it there.

Maybe I could remove it in the .dka file if I knew what the numbers mean. Each line of the file is three numbers, separated by commas. One or two digits, two digits, and five digits. Where the keystrokes run macros, I found that the five digit number identifies the macro, so I'm guessing for the other lines the five digit number identifies a command. Is there any way I can find which number identifies a given command?

DrollTroll

#1
The middle column is the ascii value of the key being used. The first column is the shift state, i.e. what combination of Ctrl, Shift, and Alt (if any) is used. The third column, as you have deduced, is the numeric command ID. Look this up in Dc3Maxcmd.ini. If you can't make sense of the internal command name it goes to there, look up the internal command name in MacroCmd.ini.
Frexample, Ctrl-Alt-D, according to the keyboard control page, is assigned to Show/Hide Command Dialog.
Saving the default keystrokes to default.dka, we look in the middle column for the ascii value of D. The charmap utility shows a hex value of 44, which in my head converts to 68 (16*4 = 64, plus 4 = 68). You can also use the Windows calc program in Programmer view to convert from hex to decimal, or just look up an ascii chart on the web; good ones will give both the decimal and hex value of characters.
So, we look down the middle column of default.dka for 68. Three are listed:
3,68,10313
11,68,10189
27,68,10718

searching for 10313 in Dc3maxcmd.ini, we find
ID_SECTION_DEL_CUTOFF=10313
That's a little unclear, so searching for ID_SECTION_DEL_CUTOFF  we find
SectionTrim=ID_SECTION_DEL_CUTOFF

Unshifted D is the keystroke for Section Trim, so the 3 in front must mean an unshifted alphanumeric key. So, we now know that
3,68,10313 ---> Unshifted 'D' key = Section Trim
Next we look at the second D item: 11,68,10189
Searching for 10189 in Dc3MaxCmd.ini we get
ID_SOLIDDEFINE=10189
That's pretty clear -- Solid Define. We know that's a Ctrl-D command, so the 11 in front means Ctrl+alphanumeric key. Thus we know that
11,68,10189 ---> Ctrl-D = Solid Define

Finally, we have 27,68,10718
Looking up 10718 in Dc3MaxCmd.ini we get
ID_TOGGLE_DLGCMD=10718
That looks like a good match for Show/Hide Command Dialog, so the 27 in front means Ctrl-Alt-aphanumeric. Thus we now know that
27,68,10718 --> Ctrl-Alt-D = Show/Hide Command Dialog.

Items with a 2 in front represent non-alphanumeric keys, like #, $, ;, :, etc. that don't have an "uppercase" value (even though you may have to press the Shift key to reach them). Also, when rolling your own, be careful about using Shift + Numbers -- that could potentially override one of the above keys. For example, on US keyboards, # = Shift_3. If you assign Shift-3 to a command, either it won't work or you'll lose the shortcut for the # sign.
I know, it looks awfully complicated, but a little practice makes it easy enough.

To remove the Ctrl-Alt-D shortcut from the default keyboard settings, temporarily assign it to a new command that you *can* access from the Keyboard options (Solid/Ellipsoid, for example), then remove that assignment (hint: you have to click on the Ctrl-Alt-D in the list in the bottom left pane for "Remove" to activate). Save as a .dka file, load the saved dka file, and save as default.
25 years with DesignCAD

rccon

Thanks, that reply is a definite saver and will get some study.

rccon

DT, it all makes sense now, and I removed ctrl-alt-d. It no longer shows as "currently assigned" in the "options, keyboard" window, but still will not open designcad when designcad is already open. What it does is to remove the focus from dcad, i.e. the blue bar at the top turns gray, leaving no window active. When I minimize all windows it still will not open dcad, though double clicking the desktop icon will open a second instance. My custom .dka file is loaded, and the line for ctrl-alt-D is gone. there is no 27,68 in the file.  I do have a windows hotkey application, but ctrl-alt-D is not assigned there. Any suggestions?

paulerens

#4
Go to <Options> press. <Options> choose <Kayboard> choose  <files>and Right <New>(Go to onder) choose <N> + Select <ALT> (Now your Key = N ALt) Go toRight on top do <Assign> <Save as Default> <Save > give a name <Apply> <OK>

your Key =  ALt+N

Lar

Quote from: rccon on April 04, 2013, 05:16:32 PM
I use ctrl alt D to open designcad, but it doesn't work when designcad is already open
Rccon, for you to open the first instance of dcad wouldn't your shortcut have to be a window's shortcut? Far as I know, dcad's keys only work within dcad and only when it's already open.

Do you have win7? You can 'pin' your regular icons to the bar along the bottom of the screen so they are always easy to access. If a program is already open you can right click it's icon and if you click the program's name in the pop-up menu it will open another instance of the program. You can also access the last few filenames you opened in a program in the pop-up menu. Any filename can also be 'pinned' to the pop-up menu, so they are always there, until you unpin them.

Lar

rccon

I have windows xp. I tried opening word with my keyboard shortcut ctrl-alt-w when word was already open and it did the same thing as in designcad i.e. it changed the blue bar to gray, leaving no active window, bu opened nothing. double-clicking the desktop icon would open a second instance of word. Looks like this is a windows thing, unrelated to designcad. The keyboard shortcut does the same thing as the double-click, except when the program is already open.

prl

In the past some keyboards and mouse drivers automatically did you the "favor" of assigning system wide hotkeys.  So when checking out the source of your global hotkeys assignments, keep that in mind too.

rccon

Problem solved.  I have a program called hotkeyz, (free download, I think). When I removed the shortcut key from the desktop icon and set it in hotkeyz instead, it worked, even when designcad was already open.

Lar

#9
In xp I once had a system where, if I remember correctly, I right clicked the task bar and was able to create a folder. In this folder I may have put icons so I always had easy access to my regular stuff. I can't remember exactly how I did it. I also remember clicking something I set up on the task bar and a menu popped up showing the names of everything that was in that folder, but I remember them being file management folders as opposed to icons.

possible solution for xp (and those who don't have hotkeyz)
Hey, I tried right clicking the task bar in win7. I had to click very close to the start button (but not the button itself) and a menu popped up. One of the menu options is 'toolbar'. Clicking that had a few otions, including 'desktop' and ''new folder...'. The former wanted me to select a folder from the standard browser, which I aborted. The latter placed 'desktop >>' on my task bar. Clicking the arrows popped up a menu of all the icons on the desktop, so now I can access them all from the task bar, including the ones I didn't pin. Some are folders with sub-menus. I think this should also work in xp, seeing as how there's hardly ever anything new in MS Windows, it just looks different from the last version. ...The pinning thing is new, though.

Lar