Atlas-OS / Atlas

🚀 An open and lightweight modification to Windows, designed to optimize performance, privacy and usability.
https://atlasos.net
GNU General Public License v3.0
13.58k stars 519 forks source link

[BUG] - AtlasOS causes crashes with C#'s SendKeys.SendWait() #1137

Closed frapstergt closed 3 months ago

frapstergt commented 3 months ago

Before continuing...

Description

When using atlasOS, running any C# scripts that call SendKeys.SendWait(key) causes the system to freeze up. Ive teted

Steps to reproduce

  1. Make a c# script that calls SendKeys.SentWait(key)
  2. Run the script

Expected behavior

The chosen key gets sent.

Actual behavior

The system freezes up

Atlas Edition

Atlas for Windows 10 22H2

Desktop information

i7 8700k, rtx 2080 latest drivers, 16gb ddr4 @ 3600mhz, samsung 980 pro 1tb

Additional content

No response

Ast3risk-ops commented 3 months ago

Need the specific version. It can be seen in windows settings > system > about. If it just shows atlas for windows 10 22h2, you need to update immediately (https://docs.atlasos.net/getting-started/installation/)

After updating, see if your issue persists.

he3als commented 3 months ago

I can't reproduce this issue. Are you sure that you're on v0.4.0?

using System;
using System.Diagnostics;
using System.Threading;
using System.Windows.Forms;

namespace SendKeysTest
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("running");
            Process.Start("notepad.exe");
            Thread.Sleep(2500); // give time for Notepad
            SendKeys.SendWait("test");
            Console.WriteLine("finished");
            Console.ReadKey();
        }
    }
}

https://github.com/Atlas-OS/Atlas/assets/65787561/90aeaaf6-2936-4261-a71e-4e2af313b3c1