PS: Paste Ascii Art

1 minute read

Description:

Sends common Ascii commands to your clipboard.

To Resolve:

  1. Script (Original Source):

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    
    Param
       (
          [switch]$Shrug,
          [switch]$Disapproval,
          [switch]$TableFlip,
          [switch]$TableBack,
          [switch]$TableFlip2,
          [switch]$TableBack2,
          [switch]$TableFlip3,
          [switch]$Denko,
          [switch]$BlowKiss,
          [switch]$Lenny,
          [switch]$Angry,
          [switch]$DontKnow,
          [String]$Logfile = "$PSScriptRoot\..\Logs\Send-AsciiToClipboard.Log"
       )
    
    Begin
    {
          $OutputEncoding = [System.Text.Encoding]::unicode
    }
    Process
    { 
             If ($Shrug)
                {
                   [char[]]@(175, 92, 95, 40, 12484, 41, 95, 47, 175) -join '' | clip
                }
                If ($Disapproval)
                {
                   [char[]]@(3232, 95, 3232) -join '' | clip
                }
                If ($TableFlip)
                {
                   [char[]]@(40, 9583, 176, 9633, 176, 65289, 9583, 65077, 32, 9531, 9473, 9531, 41) -join '' | clip
                }
                If ($TableBack)
                {
                   [char[]]@(9516, 9472, 9472, 9516, 32, 175, 92, 95, 40, 12484, 41) -join '' | clip
                }
                If ($TableFlip2)
                {
                   [char[]]@(9531, 9473, 9531, 32, 65077, 12541, 40, 96, 1044, 180, 41, 65417, 65077, 32, 9531, 9473, 9531) -join '' | clip
                }
                If ($TableBack2)
                {
                   [char[]]@(9516, 9472, 9516, 12494, 40, 32, 186, 32, 95, 32, 186, 12494, 41) -join '' | clip
                }
                If ($TableFlip3)
                {
                   [char[]]@(40, 12494, 3232, 30410, 3232, 41, 12494, 24417, 9531, 9473, 9531) -join '' | clip
                }
                If ($Denko)
                {
                   [char[]]@(40, 180, 65381, 969, 65381, 96, 41) -join '' | clip
                }
                If ($BlowKiss)
                {
                   [char[]]@(40, 42, 94, 51, 94, 41, 47, 126, 9734) -join '' | clip
                }
                If ($Lenny)
                {
                   [char[]]@(40, 32, 865, 176, 32, 860, 662, 32, 865, 176, 41) -join '' | clip
                }
                If ($Angry)
                {
                   [char[]]@(40, 65283, 65439, 1044, 65439, 41) -join '' | clip
                }
                If ($DontKnow)
                {
                   [char[]]@(9488, 40, 39, 65374, 39, 65307, 41, 9484) -join '' | clip
                }
    }
    
  2. Source is maintained under gwMisc

-----------------------------------------------------------
Spotted a mistake in this article? Why not suggest an edit!
Did you like the article? Donations are always welcome!
-----------------------------------------------------------

Comments