1. Welcome to VegasMessageBoard
    It appears you are visiting our community as a guest.
    In order to view full-size images, participate in discussions, vote in polls, etc, you will need to Log in or Register.

Computer help needed: Macro help

Discussion in 'Non-Vegas Chat' started by Sonya, Mar 22, 2013.

Thread Status:
Not open for further replies.
  1. Sonya

    Sonya Queen of VMB

    Joined:
    Nov 28, 1999
    Messages:
    44,195
    Location:
    Western Washington
    Trips to Las Vegas:
    25
    I do a lot of cutting and pasting of code in this job. My problem is the repetitive things I have to insert into that code. ie target="_blank"

    I am looking for some kind of macro where I can just hit it and it will insert that text where the cursor is located.

    I played with Imacro for Chrome a bit, but couldn't figure out how to get it to just insert plain old text.

    Today I have been doing HUNDREDS of these and I am wearing thin on typing target="_blank" over and over and over. I even tried making a small notepad window with the text so I can cut and paste it in, but that's too much pasting. There has to be an easier way.

    Does anyone know of a solution?
     
  2. Auggie

    Auggie Dovahkiin

    Joined:
    Jan 8, 2009
    Messages:
    5,820
    Location:
    Burnaby, BC
    Trips to Las Vegas:
    17
    If you are just doing links and adding target="_blank" to them then what you can do is use the search and replace functionality of your editor (or even notepad has it)

    where your link will look something like:

    <a href="www.gotothislinkinanewwindow.com">

    you can do a search and replace, telling it to search for:

    <a href="

    and replace with:

    <a target="_blank" href="


    If your links are more like: www.thisIsTheLinkIamWorkingWith.com

    you would do your search and replace like:

    search for: www.
    replace with: <a target="_blank" href="http://www.

    and then

    search for: .com
    replace with: .com"></a>
    (and then type the text content between the tags)


    One thing with working with HTML is that all your modifiers like CLASS=, TARGET=, STYLE=, etc it doesn't matter if they are before or after the HREF=


    Also with doing cut and paste, you should be able to use keyboard shortcuts like:
    CTRL C = copy
    CTRL X = cut
    CTRL V = paste
     
  3. Sonya

    Sonya Queen of VMB

    Joined:
    Nov 28, 1999
    Messages:
    44,195
    Location:
    Western Washington
    Trips to Las Vegas:
    25
    Yeah I've been using the CTRL-C/V thing all along.

    I can't really do search and replace. I have two different places where I have to paste, edit for formatting and include 'target="_blank"' in some ad code that I get. I also go to my HTML editor, and that's much easier to take care of.

    Really all I want to do is have a button or something that will insert (space)target="_blank" where I have the cursor. It's almost too simple for anyone to want to make a tool for this, but the repetition gets to me some days... like today. :)

    Back in the olden days, I know I used to create function keys that would do these macros. On the commodore and through DOS. Did I just reveal that I'm super old? :haha: I know I can't be the only person who has to do this boring cut and paste stuff. I just thought maybe someone else here had a fix for me.

    Thanks, Auggie!
     
  4. Backagain1

    Backagain1 High-Roller

    Joined:
    Oct 14, 2012
    Messages:
    740
    Trips to Las Vegas:
    8
    There is a go to site that we.. go to. Majorgeeks.com
     
  5. Chuck2009x

    Chuck2009x VIP Whale

    Joined:
    Apr 5, 2009
    Messages:
    14,199
    Location:
    Boston
    Trips to Las Vegas:
    30
    If I'm reading you right, what you'd like to do is copy once, then be able to click to place the cursor and simultaneously paste via that same click.

    I found an app called AutoClipX that looks like it will do that. Looks like it will Copy upon releasing the mouse button after highlighting text, and then paste upon clicking somewhere.

    Disclaimer: I haven't downloaded it or tried it.

    http://download.cnet.com/AutoClipX/3000-2384_4-75452104.html
     
  6. gguerra

    gguerra High-Roller

    Joined:
    Apr 14, 2011
    Messages:
    665
    Location:
    Sunny South Texas
    Trips to Las Vegas:
    24
  7. Sonya

    Sonya Queen of VMB

    Joined:
    Nov 28, 1999
    Messages:
    44,195
    Location:
    Western Washington
    Trips to Las Vegas:
    25
    Thanks, gguerra! That's the one!
     
  8. gguerra

    gguerra High-Roller

    Joined:
    Apr 14, 2011
    Messages:
    665
    Location:
    Sunny South Texas
    Trips to Las Vegas:
    24
    You're welcome. Just a tip, when recording mouse clicks and movement it will time the events. If while recording a certain movement or click of the mouse it takes 10 seconds, when you will play it back it will take the same 10 seconds. You can go in after the fact and adjust the timing of those events but that is a little more complex.
     
  9. split10's?

    split10's? Low-Roller

    Joined:
    Mar 17, 2013
    Messages:
    201
    Trips to Las Vegas:
    87
    Learned on Basic, Fortran and punch cards. You're a pup...;)
     
Thread Status:
Not open for further replies.