Simulate fake mouse and keyboard actions to fake staying online
Project description
Simulate fake mouse movement and fake keyboard typing.
How to use
Programtically
Default Settings
from stay_online.stay_online import stay_online
stay_online()
Optional Parameters Values
stay_online(
stop_hhmm:str='',
min_delay_seconds:int=120,
max_delay_seconds:int=180,
min_num_words:int=1,
max_num_words:int=10,
show_timestamp:bool=False
)
CLI
Default Settings
stay-online
Optional Parameters
--stop STOP_HHMM
Automatically stop the simulation at the time, example '1700'. Default: Empty
--min_delay MIN_DELAY_SECONDS
Minimum delay seconds between each new line. Default: 120
--max_delay MAX_DELAY_SECONDS
Maximum delay seconds between each new line. Default: 180
--min_words MIN_NUM_WORDS
Minimum number of words to type per line. Default: 1
--max_words MAX_NUM_WORDS
Maximum number of words to type per line. Default: 10
--timestamp SHOW_TIMESTAMP
Type out the timestamp in front of the line to keep track of the time. Default: False
Once the Python program is initiated, a prompt will appear, requesting you to select the area where you want the cursor to move.
This designated location will serve as the point where the cursor will autonomously navigate and perform left-click actions at specified intervals.
Place cursor at clicking position and left click once.
Parameters
stop_hhmm: Automatically stop the simulation at the provided time, example '1700'.
min_delay_seconds: Minimum delay seconds between each new line.
max_delay_seconds: Maximum delay seconds between each new line.
min_num_words: Minimum number of words to type per line.
max_num_words: Maximum number of words to type per line.
show_timestamp: Type out the timestamp in front of the line to keep track of the time.
Running it directly from github
stay_online uses hatch build system for backend. To install dependencies for local development environment, run:
git clone [URL-HERE]
pipx install hatch
hatch shell
pip install -e .
This will create a venv environment and install all the dependencies needed.
You can invoke stayonline from your terminal once you are in hatch shell. A working shell output example is as below
(stay-online) ➜ stay_online git:(main) stayonline
Remeber to provide the optional parameters:
:param str stop_hhmm: Automatically stop the simulation at the provided time, example '1700'.
:param int min_delay_seconds: Minimum delay seconds between each new line.
:param int max_delay_seconds: Maximum delay seconds between each new line.
:param int min_num_words: Minimum number of words to type per line.
:param int max_num_words: Maximum number of words to type per line.
:param bool show_timestamp: Type out the timestamp.
Place cursor at clicking position and left click once.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stay_online-0.2.0.tar.gz.
File metadata
- Download URL: stay_online-0.2.0.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24d8344a09d74a2071c29cc8e3aec992070e707d874e842528529377427d4965
|
|
| MD5 |
3b72d562fa6b1a971731bf71209e851b
|
|
| BLAKE2b-256 |
4df1c3259558fbdc54a4ba8d5be03c3dd1d539386c8973dab070f9be4a36ee77
|
File details
Details for the file stay_online-0.2.0-py3-none-any.whl.
File metadata
- Download URL: stay_online-0.2.0-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
269f0a84eb1f9f3e767d2cc204457d2ccebdb4fa44bf4b4afaae5e1107fac658
|
|
| MD5 |
65eaf18804621119a4c3dd8575d78967
|
|
| BLAKE2b-256 |
8f88c2bc8db598be419e6c0f8e962be8056c3f5e109ad7dee367f6ce78a9e85d
|