Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #179778

Re: {rightclick} New | Text Document

From Wolf Greenblatt <wolf@greenblatt.net>
Newsgroups alt.comp.os.windows-10, alt.comp.os.windows-11
Subject Re: {rightclick} New | Text Document
Date 2024-11-07 22:42 -0500
Organization Private News Server
Message-ID <vgk1be$cmdj$1@news.samoylyk.net> (permalink)
References <velo9h$3r5$1@news.samoylyk.net>

Cross-posted to 2 groups.

Show all headers | View raw


On Sun, 27 Oct 2024 08:53:33 +0100, Herbert Kleebauer wrote:

>> I have sometimes wanted to copy the whole contents of a command window
>> and save it in a file. A "tee" program is usually not sufficient. I
>> managed to do it with a mouse macro program, but a single command would
>> be ideal.
> 
> But with the new terminal window in WIN11 it is as simple as in
> any GUI Windows program. Do a <SHIFT> mouse click on the
> first character you want to copy, then scroll down the window
> and do a <SHIFT> mouse click on the last character you want to
> copy and then a <CTRL>-C to store it in the clipboard.

Thanks to Herbert Kleebauer's prior suggestions, I have a series of 
template-creating batch files now, all invoked easily in a Runbox.

When I want template #1 for example, I type "1" in the Runbox.
When I want template #2, I type "2"; "3" for template #3, etc.

All the batch files are the same - they just seed a different template into 
the Windows clipboard using the "pipe to clip" Herbert had suggested.

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\1.exe
 @Default = c:\path\seedclip_template1.bat
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\2.exe
 @Default = c:\path\seedclip_template2.bat
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\3.exe
 @Default = c:\path\seedclip_template3.bat

Where the general form of the "seed to clip" for templates is
 Win+R > 1
Which then seeds the clipboard with template1.txt

 @echo off
 REM This seeds the Windows clipboard for subsequent pastes
 type C:\path\template1.txt|clip

When you are in any file, you just type "1" into the Runbox, 
and then you Control+V the template from the clipboard into it.

The nice thing is you can create delimiter templates of any length with 
subsequent pastes, so you only really need one set of delimiters.
 @echo off
 REM seedclip.bat seeds the Windows clipboard for subsequent pastes
 (for /l %%i in (1,1,10) do @echo =============================================================================&echo.)|clip

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

{rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-15 08:47 -0400
  Re: {rightclick} New | Text Document Big Al <alan@invalid.com> - 2024-10-15 09:53 -0400
  Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-15 16:43 +0200
    Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-15 13:04 -0400
      Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-16 00:44 +0200
        Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-16 01:49 +0200
          Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-15 23:12 -0400
            Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-10-16 09:44 +0200
              Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-10-16 16:31 -0400
            Re: {rightclick} New | Text Document Newyana2 <newyana@invalid.nospam> - 2024-10-16 08:52 -0400
  Re: {rightclick} New | Text Document Newyana2 <newyana@invalid.nospam> - 2024-10-15 11:26 -0400
  Re: {rightclick} New | Text Document Paul <nospam@needed.invalid> - 2024-10-15 13:38 -0400
  Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-07 22:42 -0500
    Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 09:07 +0100
      Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 09:14 -0500
        Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 17:18 +0100
          Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 13:58 -0500
            Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 22:18 +0100
              Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 20:24 -0500
                Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-09 10:22 +0100
        Re: {rightclick} New | Text Document "R.Wieser" <address@is.invalid> - 2024-11-08 17:30 +0100
        Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-08 21:53 +0100
          Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-08 23:14 -0500
            Re: {rightclick} New | Text Document Zaidy036 <Zaidy036@air.isp.spam> - 2024-11-09 10:20 -0500
              Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-25 17:50 -0500
            Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:35 +0100
            Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:36 +0100
            Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:37 +0100
            Re: {rightclick} New | Text Document Herbert Kleebauer <klee@unibwm.de> - 2024-11-09 16:38 +0100
            Re: {rightclick} New | Text Document Wolf Greenblatt <wolf@greenblatt.net> - 2024-11-25 18:04 -0500

csiph-web