Windows 10: Batch file paste text

  1. tcebob's Avatar
    Posts : 390
    Windows 10 pro 1803/17134.285
       11 May 2018 #1

    Batch file paste text

    Suppose I frequently want to enter "Mary had a little lamb." into a form or editor. Can this be done with a batch file? (Yes, I know about AutoHotkey.)
      My ComputerSystem Spec

  2.    11 May 2018 #2

    tcebob said: View Post
    Yes, I know about AutoHotkey
    Does that mean you don't want to use a key combination?

    How do you want to do it then? You could assign a mouse button to do it (perhaps even an eye gesture if your PC is new enough) but it really depends.

    I'm curious what you think a batch file would do. Obviously if you clicked on a batch file wherever you wanted to put your text would not be in focus any more and it wouldn't therefore work.

    Perhaps you want to run your batch file some other way (every 15 minutes perhaps) on the off chance entering "Mary had a little lamb" would be constructive.

    If you think it through you will realise that you need a trigger and that trigger will be probably need to be a human input - via keyboard, mouse or something. So AutoHotKey would be pretty much perfect.
      My ComputerSystem Spec

  3. tcebob's Avatar
    Posts : 390
    Windows 10 pro 1803/17134.285
    Thread Starter
       11 May 2018 #3

    <sigh> OK, I guess the answer is "no."
      My ComputerSystem Spec

  4.    11 May 2018 #4

    I can't think of one, sorry. Can't think how it would work.
      My ComputerSystem Spec

  5.    11 May 2018 #5

    Give an example of exactly what you want to do... (I don't do cmd/batch... PS only)
      My ComputerSystem Spec


Related Threads
I find that I can copy text within Notepad, Notepad++, etc. just fine. However, in most other programs, cut/copy/paste just does not work. This includes the address bar in Firefox/Chrome/Edge, etc. It's the same whether I use ctrl+x/ctrl+c/ctrl+v,...
How can I add to this batch command to include the date: xcopy C:\all\* Z:\Allbak\* /E /Y /C I'd like the resulting file to be named "Z:\Allbak171129" (yr mo day). The plan is to set up a task schedule to run the batch file every week. I...
Hi folks! If this is not in the right forum, please change. Txs. If I add a monitor to my laptop though an HDMI port, is it possible to have separate documents on each monitor, and copy/paste from one to another? If so, how is this done? ...
In Windows 10 file explorer occasionally when I cut files from one directory and paste them in another, the whole directory that I'm pasting to disappears. It happens so fast that its hard to see but it seems like a window pops up deleting the...
Hi there forum, how do you change the Visual effects using a batch file or registry file. Thanks, Edward.
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:34.
Find Us