カテゴリー: Windows

  • How to make a log for Power Apps in SharePoint LIST

    How to make a log for Power Apps in SharePoint LIST

    Plan 3: Memory-based Entry + Single Write on Exit

    In App OnStart:

    powerapps

    Set(AppIdentifier, "App1");
    Set(SessionData, Blank());  // Initialize session tracking

    On Screen.OnVisible (Store in memory only):

    powerapps

    // Store entry data in memory - NO SharePoint write
    Set(
        SessionData,
        {
            EnterTime: Now(),
            AppName: AppIdentifier,
            ScreenName: App.ActiveScreen.Name,
            Username: Left(User().Email, Find("@", User().Email) - 1),
            ProjectID: If(IsBlank(YourSelectedProject), "None", YourSelectedProject.ID)
        }
    );

    On Screen.OnHidden (Write complete log):

    powerapps

    // Single write with complete session data
    If(
        !IsBlank(SessionData),
        Patch(
            apps_text_log,
            Defaults(apps_text_log),
            {
                linelog: Text(SessionData.EnterTime, "yyyy-mm-dd hh:mm:ss") & "," &
                         Text(Now(), "yyyy-mm-dd hh:mm:ss") & "," &
                         SessionData.AppName & "," &
                         SessionData.ScreenName & "," &
                         SessionData.Username & "," &
                         SessionData.ProjectID & "," &
                         Text(DateDiff(SessionData.EnterTime, Now(), Seconds))
            }
        );
        
        Set(SessionData, Blank());  // Clear memory
    );
  • Windows 11 24H2 の新機能・変更点(簡潔版)

    1. Wi-Fi 7 対応:高速・低遅延通信が可能に。
    2. Bluetooth LE Audio 対応:補聴器などの次世代オーディオ機器に対応。
    3. HDR壁紙対応:HDRモニターで高画質背景が使用可能。
    4. Copilot+ PC向けAI機能:ライブ字幕翻訳、AI画像生成、ゲームの自動高画質化など(NPU搭載PC限定)。
    5. ファイルエクスプローラー改善:タブ複製、ドラッグ操作、メニューのわかりやすさ向上。
    6. 検索機能の強化:ファイルや画像の意味検索が可能に。
    7. 「sudo」コマンド追加:管理者権限で簡単にコマンド実行。
    8. エネルギー管理改善:スマートなバッテリー節約モードとAPI。
    9. QRコードでWi-Fi共有:簡単にWi-Fi接続・共有可能。
    10. SMB署名の強制化:セキュリティ向上。
    11. NTLMv1の廃止:古い認証プロトコルを削除。
    12. WordPad、Mixed Realityの削除:非推奨機能の整理。
    13. Windows Updateの高速化:差分ベースの「チェックポイント更新」採用。
    14. 新しい電源管理API:開発者向けにグリーンエネルギー対応。
    15. 新しいUI改善:タスクトレイやクイック設定がより直感的に。
    16. Teamsの通知改善:アカウント関連通知がより便利に。
    17. LAPSの強化:ローカル管理者パスワードの自動管理。
    18. SHA-3 暗号化対応:最新のハッシュアルゴリズムサポート。
    19. 問題のあるアプリとの互換性:一部デバイスでは自動アップデートが一時保留中。
    20. 全体的に安定性・セキュリティ・AI活用が中心のアップデート

  • Why HTML Files Aren’t Directly Rendered as Emails in Teams

    Why HTML Files Aren’t Directly Rendered as Emails in Teams

    It’s important to understand that Microsoft Teams handles HTML content differently depending on how it’s presented. Here’s a breakdown of the situation and how to approach it:
    Why HTML Files Aren’t Directly Rendered as Emails in Teams:

    For viewing the content of a saved HTML file, download it and open it in a web browser.

    Teams is a Collaboration Platform:

    Teams primarily focuses on chat, file sharing, and collaboration. While it integrates with Outlook, it doesn’t replicate the full email client experience within its chat interface.

    Security Concerns:

    Directly rendering arbitrary HTML could pose security risks. Teams has to balance functionality with protection against malicious code.

    Rendering Differences:

    HTML rendering can vary across different applications. Teams might not have the same rendering engine as a dedicated email client.
    How to Approach Viewing HTML Email Content in Teams:

    If the HTML is from an Email Sent to a Teams Channel:

    When an email is sent to a Teams channel, Teams attempts to display the content. However, complex HTML or elements that Teams doesn’t support might not render correctly.

    Sometimes, Teams will display the raw HTML code instead of the rendered version.

    Factors that can affect this are:

    Complex CSS.

    JavaScript.

    External image links that are blocked.

    Malformed HTML.

    Viewing the HTML File:

    If you’ve uploaded an HTML file directly to Teams, it will generally be treated as a file.

    To view it as intended, you’ll likely need to:

    Download the file: Download the .html file from Teams.

    Open in a Web Browser: Open the downloaded file in a web browser (like Chrome, Firefox, or Edge). This will render the HTML as a webpage.

    Outlook Integration:

    For actual email viewing, rely on the Outlook application or Outlook on the web, which are designed for that purpose. Teams integrates with Outlook, so you can access your emails through those applications.
    In summary:

    Teams isn’t designed to be a full-fledged HTML email rendering engine.

    For proper HTML email viewing, use Outlook.

  • WPF.NET c# Tips


    Application.Startup イベント (System.Windows) | Microsoft Docs

    <Application
        x:Class="CallBook.App"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Startup="CallBook_Startup"
        >
        <Application.Resources>
        </Application.Resources>
    </Application>
        public partial class App : Application
        {
            void CallBook_Startup(object sender, StartupEventArgs e)
            {
                bool startReddit = false;
                for (int i = 0; i != e.Args.Length; ++i)
                {
                    if (e.Args[i] == "/Reddit")
                    {
                        startReddit = true;
                    }
                }
                
                if (startReddit)
                {
                    RedditWindow mainWindow = new RedditWindow();
                    mainWindow.WindowState = WindowState.Minimized;
                    mainWindow.Show();
                }
                else
                {
                    CallBookWindow cbw = new CallBookWindow();
                    cbw.Show();
                }
                
            }
        }

    264 View Count
  • Visual Studio Tips


    AdministratorでVisual Studioを起動、Clean Solution、Rebuit Solution.


    [View]-[Other Windows]-[Command Window]
    Tools.DiffFiles file1.cs file2.cs

    -Diff (devenv.exe) – Visual Studio (Windows) | Microsoft Docs


    XML ドキュメントのコメントを挿入する – Visual Studio (Windows) | Microsoft Docs

    オプションを有効にするには、プロジェクトのプロパティで

    コード要素の XML コメントを挿入するには C# では「///」と入力


    237 View Count