Skip to main content

Simplifying various WinAPI functions, with this library you won`t need to use ctypes to call WinAPI functions.

Project description

WinFuncs Library

What is this?

Simplifying various WinAPI functions, with this library you won`t need to use ctypes to call WinAPI functions.

Working with the library

move_cursor_absolute(x: int, y: int) -> None moves the cursor to the specified coordinates. arguments:
x: int - координата x.
y: int - координата y.
returns: None.
Note: The x and y values must be at least 0 and no more than 65535.

Example:

winfuncs.move_cursor_absolute(0,0)
# The cursor moves to the upper left corner

move_cursor(x: int, y: int) -> None moves the cursor to the specified coordinates relative to the current cursor position.
arguments:
x: int - координата x.
y: int - координата y.
returns: None.
Note: x and y are the number of pixels that the cursor will be moved to.

Example:

winfuncs.move_cursor(0, 100)
# The cursor moves 100 pixels along the y axis

mouse_right_up() -> None Simulates releasing the right mouse button.
arguments: nothing
returns: None.
Note: nothing.

Example:

winfuncs.mouse_right_up()

mouse_right_down() -> None Simulates right-click.
arguments: nothing.
returns: None.
Note: nothing.

Example:

winfuncs.mouse_right_down()

mouse_left_down() -> None Simulates left-click.
arguments: nothing.
returns: None.
Note: nothing.

Example:

winfuncs.mouse_left_down()

mouse_left_up() -> None Simulates raising the left mouse button.
arguments: nothing.
returns: None.
Note: nothing.

Example:

winfuncs.mouse_left_up()

turnoff_keyboard() -> None Disables the keyboard.
arguments: Nothing.
returns: None.
Note: This function must be called in a separate thread if you want your main thread not to stop. Also, before calling the keyboard enable function, some amount of time must pass (Tested time: not less than 1 second).

Example:

import threading
import time
import winfuncs

thread1 = threading.Thread(target=winfuncs.turnoff_keyboard)
thread1.start()
time.sleep(30)
winfuncs.turnon_keyboard()
# the keyboard turns off for 30 seconds

turnon_keyboard() -> None Turns on the keyboard.
arguments: Nothing.
returns: None.
Note: See turnoff_keyboard() function notes.

Example: See turnoff_keyboard() function example.

turnoff_monitor() -> None Turns off the monitor.
arguments: Nothing.
returns: None.
Note: Nothing.

Example:

import winfuncs
winfuncs.turnoff_monitor()

turnon_monitor() -> None Turns on the monitor.
arguments: Nothing.
returns: None.
Note: Nothing.

Example:

import winfuncs
winfuncs.turnon_monitor()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winfuncs-0.1.3.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winfuncs-0.1.3-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file winfuncs-0.1.3.tar.gz.

File metadata

  • Download URL: winfuncs-0.1.3.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for winfuncs-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c3e5eee2aedc3814a5599f81e7ed58ceaa09b53e1a3ef5b2694cacc59a0f615e
MD5 b05e030c528bbf6437cdffe59824c5e7
BLAKE2b-256 b2b8ba7a6245a02d30a3adf9ec3425311ea8329dc4c099fb533ba63a4c1aacbc

See more details on using hashes here.

File details

Details for the file winfuncs-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: winfuncs-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for winfuncs-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2bf4323c3a07ed132f0b9283388b298d6f071894f5fcd84087ba8728c045d1c
MD5 4cf2c0ab560a2c493de57dc2ed0361e3
BLAKE2b-256 acaa56512d491bf71aab2108b3d24f0b60a75a5b2443d3478844f707523b4c6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page