hello-TikTok.ps1


<#PSScriptInfo
 
.VERSION 1.0.0
 
.GUID 03cb458a-ddcc-45c7-9d49-f50bcfe819b5
 
.AUTHOR Larry Billinghurst
 
.COMPANYNAME TriFused
 
.COPYRIGHT 2024
 
.TAGS TikTok, Popup
 
.LICENSEURI
 
.PROJECTURI
 
.ICONURI
 
.EXTERNALMODULEDEPENDENCIES
 
.REQUIREDSCRIPTS
 
.EXTERNALSCRIPTDEPENDENCIES
 
.RELEASENOTES
 
 
.PRIVATEDATA
 
#>


<#
.SYNOPSIS
 
Displays Hello TikTok in Popup window
 
.DESCRIPTION
 
Script to display hello Ticktok using .net framwork.
 
 
 
.INPUTS
 
None. You cannot pipe objects to Update-Month.ps1.
 
.OUTPUTS
 
None. Update-Month.ps1 does not generate any output.
 
.EXAMPLE
 
PS> .\hello-TikTok.ps1
 
#>

Param()

# Load WPF libraries
Add-Type -AssemblyName PresentationFramework, PresentationCore, WindowsBase

# Define XAML for the WPF window and controls
$xaml = @"
<Window xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'
        xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
        Title='Hello TikTok from TriFused' Height='280' Width='1000'
        WindowStartupLocation='CenterScreen'>
    <Grid Background='Black'>
        <TextBlock Text='Hello TikTok' Foreground='Red' FontSize='160'
                   FontFamily='Arial' FontWeight='Bold' Margin='33,31,0,0'/>
        <TextBlock Text='Hello TikTok' Foreground='White' FontSize='160'
                   FontFamily='Arial' FontWeight='Bold' Margin='29,28,0,0'/>
    </Grid>
</Window>
"@


# Parse the XAML to create a WPF window using XamlReader
$window = [Windows.Markup.XamlReader]::Parse($xaml)

# Show the WPF window
$window.ShowDialog()