Metadata-Version: 2.1
Name: winfuncs
Version: 0.1.3
Summary: Simplifying various WinAPI functions, with this library you won`t need to use ctypes to call WinAPI functions.
Home-page: https://github.com/potichek/WinFuncsLib/blob/main/WinFuncs
Author: potichek
Author-email: bibilmeshka@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: setuptools >=39.0.1

# 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:
```python
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:
```python
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:
```python
winfuncs.mouse_right_up()
```

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

Example:
```python
winfuncs.mouse_right_down()
```

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

Example:
```python
winfuncs.mouse_left_down()
```

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

Example:
```python
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:
```python
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:
```python
import winfuncs
winfuncs.turnoff_monitor()
```

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

Example:
```python
import winfuncs
winfuncs.turnon_monitor()
```


