• Macro?

    • This topic has 6 replies, 4 voices, and was last updated 3 years ago by anonymous.
    Author
    Topic
    #2443376

    I have a frequent need to enter my email address various places, such as to Unsubscribe from mail I don’t want.

    Is there an easy way to store the email address so that I can easily paste it when I need it?

    I have never used macros, so I don’t know if that is any sort of solution.

    Ken

    Viewing 3 reply threads
    Author
    Replies
    • #2443412

      Personally, if it were me, I would just store the email address in a notepad .txt file, which I then pin to my taskbar, and copy and paste it when needed.

      If this takes too many clicks for you then I’d recommend AutoHotkey, which is what I use when I want to create macros. It’s not the simplest program, but it is powerful and once you learn how to use it it will speed up a lot of things. You can bind any key or key combination to do a huge variety of things, and set it to start when you load Windows.

      2 users thanked author for this post.
    • #2443463

      AutoHotkey makes it simple. Just choose a key combination that is not used regularly, for example 2 consecutive tilde characters (~~) or hash characters (##) or @ characters (@@). It can be anything you want.

      Now tell AutoHotkey that whenever it sees that key combination it is to *immediately* and *automatically* replace the key combination with your email address. You can achieve this in just one line.

      For example, just change this AutoHotkey one-liner to suit your own choice and email address:

      :*:~~::my_name@my_email_provider.com

      Breaking this down character by character:

      : - This first colon says 'Listen up! Instruction coming'
      * - Carry out the instruction *Immediately* without waiting for a SPACE or RETURN/ENTER
      : - Second colon ends the previous 'Immediately' clause
      ~~ - An example key combination
      :: - Signal to replace first key combination with new replacement text
      my_name@my_email_provider.com - Example replacement text

      Put that all together and that one-liner tells AutoHotkey to wait until two tildes are typed then immediately overtype them with the replacemnt email address… and all done with a simple and single one line of code.

      Hope this helps…

       

      2 users thanked author for this post.
      • #2443537

        I’ve just started using AutoHotKey  and didn’t know about the asterisk. I shall have to start studying it a bit more….

        Eliminate spare time: start programming PowerShell

    • #2443541

      @access-mdb – Another example of a hotstring replacement:

      :*:@now::
      {
      FormatTime, TimeString,, dd-MMM-yyyy
      SendInput, %TimeString%
      }

      Breaking it down:
      : – This first colon says ‘Listen up! Instruction coming’
      * – Carry out the instruction *Immediately* without waiting for a SPACE or RETURN/ENTER
      : – Second colon ends the previous ‘Immediately’ clause
      @now – Another example ‘hotstring’ key combination
      :: – Signal to replace (overwrite) the first key combination with new replacement text

      {…} – The two lines of AHK code within the curly braces tells AutoHotkey to insert the date, formatted as dd-MMM-yyyy, overwriting the ‘@now’ hotstring.

    • #2443654

      This is what I have for inserting a date. It’s instant for me.

      #x::
      FormatTime, xx,, d MMMM yyyy
      SendInput, %xx%
      Return

      Eliminate spare time: start programming PowerShell

      • #2443690

        Yours uses a Hotkey combo (Windows key+x together)  that waits for the Windows modifier key (#) to be released, mine uses a Hotstring (@now) that fires immediately the Hotstring is typed.

        Apart from the time format they’re functionally identical, just coded differently.

    Viewing 3 reply threads
    Reply To: Macro?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: