Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Copy to Clipboard ... Batch File?

  • 01-10-2010 8:23am
    #1
    Registered Users, Registered Users 2 Posts: 884 ✭✭✭


    Hi there, I would like to create something that will allow me to copy something to clipboard with just one click. Ideally it would just be a shortcut so when clicked it places the contact onto your clipboard.

    It would probably be a batch file i would have thought, does anyone know how i would go about this?


Comments

  • Closed Accounts Posts: 8,015 ✭✭✭CreepingDeath


    So you can't go right click -> "Copy" ?
    Or ctrl-c ?


  • Registered Users, Registered Users 2 Posts: 884 ✭✭✭Cork Skate


    So you can't go right click -> "Copy" ?
    Or ctrl-c ?

    Well, i can but i'd like to be able to click on a shortcut depending on what i need and be able to paste straight away, instead of having to browse, open, highlight and copy the data. I know it sounds like i'm just being lazy but its just something that would make one particular task less tedious.


  • Closed Accounts Posts: 8,015 ✭✭✭CreepingDeath


    Check your mouse driver / mouse software that came with the mouse.

    What you're looking for is a way to redefine the mouse keys.
    Especially if you have extra mouse buttons.

    Failing that, look for some software to allow you to redefine the mouse buttons, preferably to a keystore. Eg. mapping right click to Ctrl-C.

    Although I'd leave the mouse right click button alone, too many programs use it.
    Maybe set a keystore/macro for "Ctrl" + right mouse click.


  • Closed Accounts Posts: 6,151 ✭✭✭Thomas_S_Hunterson


    Probably not doable in a standard batch file but I'd be surprised if it couldn't be done in a PowerShell script. I have no experience with the PowerShell but I can't imagine it's ay more complex than Linux shell scripting.

    /I may have spoken to soon. You can pipe command line output to this and it'll stick it in the clipboard. This does rely on you having a way to cat your output as you want it copied which may or may not be possible in cmd.exe.


Advertisement