Charles Dye
Super Moderator
- May
- 5,355
- 162
Staff member
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!echo %_isodate
echo 2022-07-23
echo %_isodate
echo 2022-07-23
echo %_isodate
Would it be possible to, after pressing Ctrl-Shift-X, that I could use Ctrl-Z to undo theback toCode:echo 2022-07-23
?Code:echo %_isodate
Do you mean Alt-Z and Alt-Y? If so, you might be able to use SendInput() to invoke those actions. I just happen to have a new SendKeystrokeWithModifiers() hanging around.I wish — but the undo/redo mechanism doesn't seem to be accessible to plugins. (Anybody know something I don't? Vince?)
I didn't think of that and I don't know the answer. I suppose accomplishing all the edits with simulated keystrokes would do it but that would be hard and ugly.That would be one way to invoke Undo and Redo, sure. My question is whether there is any way for a plugin key handler to inform TCC that a change has been made, so Undo and Redo will do the right thing. (Maybe setting fRedraw ought to do this...?)
Fortunately, I could hardware-program my Gateway 2000 Anykey keyboard so that Ctrl-Alt-O sent RWin-B, Right, Enter. That worked fine but I'd still like a software solution.
I always make sure my Dells have PS/2 ports (real ones). That was the default for workstations. I don't know about today. I have four Anykey keyboards. They are cleaned, lubed with silicone, and rotated regularly. I know nothing of Vernor Vinge and the pic tells me little.Whoa.... I wouldn't have thought it was possible to use an AnyKey anymore. Was there ever a USB AnyKey, or are you doing something tricky? (Or just using a really old computer?)
(And... are you perhaps a Vernor Vinge fan?)
// wait for all modifiers up (kind of a kludge, but necessary)
while ( 0x8000 & (GetKeyState(VK_CONTROL) | GetKeyState(VK_MENU) | GetKeyState(VK_SHIFT) | GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) )
Sleep(1);