Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TCEdit - Move Line Up/Down

Aug
2,799
144
I've added shortcut keys to do the following;

VS2022 allows me to use the Alt+Up Arrow keyboard combination to move a line up.
VS2022 allows me to use the Alt+Down Arrow keyboard combination to move a line down.

I went in and added these keys to TCEdit;

1785186705755.webp


1785186714417.webp


Works as it should.

I then exit TCEdit.

I go back in,
and the keys I assigned are no longer there.

1785186868402.webp


1785186885042.webp


Joe

Code:
   _admin: 1     _admin is an internal variables
_elevated: 1     _elevated is an internal variable
  _parent: C:\WINDOWS\Explorer.EXE
  _conpty: 0     _conpty is an internal variable
 _contype: Console

TCC  36.51.77 x64   Windows 10 [Version 10.0.19045.7548]
Active code page: 437
Font: Consolas  17 x 37
FaceName: Consolas, FontFamily: 54, FontWeight: 400, FontSize: 17x37
BuildNumber  Caption                   CSDVersion  OSArchitecture  Version
19045        Microsoft Windows 10 Pro              64-bit          10.0.19045

22H2
Manufacturer  Model
Dell Inc.     Precision T5610

* \\.\DISPLAY1, NVIDIA Quadro K4000
     Monitor: MONITOR\GSM56FF\{4d36e96e-e325-11ce-bfc1-08002be10318}\0002
     Refresh rate: 59 Hz
     Color depth: 32
     Screen resolution: 1920 x 1080
     Scaling: 100%  (DPI 96 x, 96 y)
  \\.\DISPLAY2, NVIDIA Quadro K4000
  \\.\DISPLAY3, NVIDIA Quadro K4000
  \\.\DISPLAY4, NVIDIA Quadro K4000
 
I referenced Done - TCEdit Shortcuts and Font Name/Size from a few years ago.

In my TCMD.INI file,
I have;

Code:
[4NT]
XMLSettings=Yes

No settings get written to the TCEdit.xml file on exit.

So, I changed it to;
Code:
[4NT]
XMLSettings=No

...exited TCC,
started TCC,
started TCEdit,
assigned the shortcut keys,
exited TCEdit,
started TCEdit,
shortcut keys that I had assigned are not there.

The TCEdit.ini file gets updated when I exit TCEdit,
but it does not contain the shortcut keys I assgined.

Joe
 
Here's my stop-gap solution for now.

I have added the following to my HotStrings.ahk file;

Code:
#HotIf WinActive("ahk_exe TCEdit.exe")
; Ctrl-F12 Move Line Up
^F12:: {
    Send("{F10}")        ; open menu
    Send("{Right}")      ; move right
    Send("{Enter}")      ; activate

    Send("LLL{Enter}")   ; L L L then Enter
}
#HotIf

#HotIf WinActive("ahk_exe TCEdit.exe")
; Shift-F12 Move Line Down
+F12:: {
    Send("{F10}")        ; open menu
    Send("{Right}")      ; move right
    Send("{Enter}")      ; activate

    Send("w")   ; w
}
#HotIf

Joe
 
I referenced Done - TCEdit Shortcuts and Font Name/Size from a few years ago.

In my TCMD.INI file,
I have;

Code:
[4NT]
XMLSettings=Yes

No settings get written to the TCEdit.xml file on exit.

There is no INI option named "XMLSettings". It was removed several years ago.

started TCC,
started TCEdit,
assigned the shortcut keys,
exited TCEdit,
started TCEdit,
shortcut keys that I had assigned are not there.

The TCEdit.ini file gets updated when I exit TCEdit,
but it does not contain the shortcut keys I assgined.

Fixed in the next build. (The RTL customize dialog was returning the wrong result.)
 
Back
Top