Creating a special function shortcut macro in Window !0

  1. questorfla's Avatar
    Posts : 228
    Win 10 Ver 1903
       #1

    Creating a special function shortcut macro in Window !0


    Using the one line of text below i can load text into clipboard
    Code:
    type c:\scripts\test.txt | clip
    putting that into a new shortcut and assigning the preferred hotkeys works fine
    The final step was to paste the text into the current document at the point of focus where the mouse cursor is flashing. Ctrl+alt+any assigned key loads the text but the paste option is still a separate step.

    How can i add Paste to the end of the setup so that ctrl+alt+(any key) will copy the text to the document as needed without any further action. Basically, adding Ctl+V to the newly created macro
      My Computer

  2. dalchina's Avatar
    Posts : 29,887
    Win 10 Pro (1903)
       #2

    If you wanted a set of fixed text or phrases to be copied into a document, you could use
    phraseexpress
    (free version)
    Autotext - Text Expander for Windows - Snippets Manager

    You can assign a hot key to any phrase.

    It has a lot of other functions as well, of course. That's just one.


    Script: some discussion here:
    Batch code to paste from clipboard to a file? - DosTips.com
      My Computers

  3. questorfla's Avatar
    Posts : 228
    Win 10 Ver 1903
    Thread Starter
       #3

    Thanks Dalchina, I will look at both. To work as needed this cannot require any additonal softare. That was one of the requirements I should have mentioned. The above was the simplest way to load the clipboard, but I have drawn a total blank at pasting the clipboard contents afterward. I kind of enjoy the challenge but hope there is a solution
      My Computer

  4. dalchina's Avatar
    Posts : 29,887
    Win 10 Pro (1903)
       #4

    You could achieve this using Autohotkey (free scripting language) to create an exe file if you wished.

    Example:

    https://autohotkey.com/board/topic/1...oard-contents/

    An extract from Help:
    Creating a special function shortcut macro in Window !0-1.jpg
      My Computers


 

  Related Discussions
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 03:39.
Find Us




Windows 10 Forums