Code137.PowerGui 1.2.1

dotnet add package Code137.PowerGui --version 1.2.1
                    
NuGet\Install-Package Code137.PowerGui -Version 1.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Code137.PowerGui" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Code137.PowerGui" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Code137.PowerGui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Code137.PowerGui --version 1.2.1
                    
#r "nuget: Code137.PowerGui, 1.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Code137.PowerGui@1.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Code137.PowerGui&version=1.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Code137.PowerGui&version=1.2.1
                    
Install as a Cake Tool

Code137.PowerGui

New library created based on KlusterG.AutoGui but updated. Developed to facilitate the use of native Windows components, such as defining the cursor position, sending keyboard shortcuts or simulating keyboard typing.

Requirements

  • .NET Core v7.0

How To Import?

NuGet

  • Access the NuGet package manager in your project
  • Click Search
  • Search for Code137.PowerGui
  • Install the latest version of the library

Command Line

  • Access the Package Manager Console
  • Type the command Install-Package Code137.PowerGui -Version 1.2.1

.NET CLI

  • Type the command dotnet add package Code137.PowerGui --version 1.2.1

Git Clone

  • Click on Code and download in .zip (can be done in other ways, I'm saying the simplest).
  • Extract the content somewhere where you can locate it later (it can be placed together with the project you want to use, even within the solution itself).
  • Access the Code137.PowerGui project and compile it.
  • After compiled, you will have the .dll inside the bin.Debug.net7.0 folder. Once that's done, open the project you want to import the library.
  • In your project, you will have the Dependencies component, click with the right mouse button and go to "Add Project Reference...".
  • Click on Browse and locate the .dll file that was generated by the library, select it and click on add, after that, click on OK and your project will already have the library loaded.

Components and Functions

  • MouseClick(MKeys key)

    Comment: Simulation of clicking this mouse

    Return: Tuple<bool, string>

  • MouseDoubleClick(MKeys key)

    Comment: Simulation of dobule clicking this mouse

    Return: Tuple<bool, string>

  • MousePress(MKeys key)

    Comment: Simulation of pressing mouse click

    Return: Tuple<bool, string>

  • MouseRelease(MKeys key)

    Comment: Release mouse key pressed

    Return: Tuple<bool, string>

  • MouseReleaseKeys()

    Comment: Release all mouse keys

    Return: void

  • SetCursorPosition(Position position)

    Comment: Move mouse cursor to X and Y positions

    Return: void

  • GetCursorPosition()

    Comment: Get mouse position

    Return: Mouse

  • Write(string text)

    Comment: Simulates keyboard typing

    Return: Tuple<bool, string>

  • KeyboardClick(KKeys key)

    Comment: Simulates a single keyboard click

    Return: Tuple<bool, string>

  • KeyboardPress(KKeys key)

    Comment: Press a keyboard key

    Return: Tuple<bool, string>

  • KeyboardRelease(KKeys key)

    Comment: Release the pressed key on the keyboard

    Return: Tuple<bool, string>

  • KeyboardReleaseKeys()

    Comment: Release the pressed key from the keyboard

    Return: void

  • GetKeyPress()

    Comment: Get the key that was pressed

    Return: Keys

  • ReleaseAllKeys()

    Comment: Release all keys (keyboard and mouse)

    Return: void

  • Sleep(double time)

    Comment: Makes the whole process wait for the parameter time

    Return: void

  • Message(string title, string content)

    Comment: Send message on screen this user

    Return: Tuple<bool, string>

  • GetMousePixelColor()

    Comment: Get the color of the pixel that was indicated from mouse cursor

    PixelColor

  • GetPixelColor(Position position)

    Comment: Get the color of the pixel that was indicated

    PixelColor

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 136 12/5/2024
1.1.1 264 12/10/2023
1.1.0 163 12/8/2023