Skip to content

UIPI Problem #4

Open
Open
@gkapellmann

Description

Describe the bug

Thank you for your help with this package, to keep it up to date.

I am trying to use this from a Service.

I get this Exception:
System.Exception: Some simulated input commands were not sent successfully. The most common reason for this happening are the security features of Windows including User Interface Privacy Isolation (UIPI). Your application can only send commands to applications of the same or lower elevation. Similarly certain commands are restricted to Accessibility/UIAutomation applications. Refer to the project home page and the code samples for more information.

I hve tried using impersonation, but doesnt make a difference, and running a service as admin is not an option due to how services work.

Any ideas? Thank you for your time!

Steps to reproduce the bug

1.- Start a basic Service in .Net Core
2.- Attempt using the input class

Expected behavior

No response

Screenshots

No response

NuGet package version

No response

Platform

Console

IDE

Visual Studio 2022

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions