This commit is contained in:
Firepup Sixfifty 2022-03-03 15:29:03 +00:00
parent 65cbb2d5e3
commit f11fc59db9
10 changed files with 29 additions and 11 deletions

Binary file not shown.

View file

@ -1,9 +1,11 @@
def build(): def build():
import os import os
import editor as ed from editor import edit
os.system("rm -rf package/dist")
os.system("mkdir package/dist")
os.system("pip install --upgrade pip build twine") os.system("pip install --upgrade pip build twine")
os.system("clear") os.system("clear")
ed.edit() edit()
os.system("clear") os.system("clear")
print("Run these commands next: \n cd package\n python3 -m build\n python3 -m twine upload -r pypi dist/*") print("Run these commands next: \n cd package\n python3 -m build\n python3 -m twine upload -r pypi dist/*")
# __token__ # __token__

View file

@ -1,2 +1,6 @@
#from build import build #from build import build
#build() #build()
import package.src.fkeycapture as fkey
print(fkey.get(5))
while 1:
print(fkey.getnum())

View file

@ -4,8 +4,9 @@ This is a simple and easy to use package that allows you to capture individual k
1. (Default) Recive key as a string 1. (Default) Recive key as a string
2. Recive key as bytes 2. Recive key as bytes
#### How to Use: #### How to Use:
1. from fkeycapture import get 1. from fkeycapture import get, getnum
2. Use it like this 2. Use it like this
: get([number of keys to capture],[if you want bytes output, make this 'True']) : get([number of keys to capture],[if you want bytes output, make this 'True'])
###### v.1.0.6: 3. To use the getnum method use like this: getnum([number of key to capture])
Finally made the package usable. ###### v.1.0.7:
Added the getnum method

Binary file not shown.

Binary file not shown.

View file

@ -1,6 +1,6 @@
[metadata] [metadata]
name = fkeycapture name = fkeycapture
version = 1.0.6 version = 1.0.7
author = Firepup650 author = Firepup650
author_email = firepyp650@gmail.com author_email = firepyp650@gmail.com
description = A way to capture keystrokes description = A way to capture keystrokes

View file

@ -1,6 +1,6 @@
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: fkeycapture Name: fkeycapture
Version: 1.0.6 Version: 1.0.7
Summary: A way to capture keystrokes Summary: A way to capture keystrokes
Home-page: https://github.com/Alexander-Maples/fkeycapture Home-page: https://github.com/Alexander-Maples/fkeycapture
Author: Firepup650 Author: Firepup650
@ -14,11 +14,12 @@ Description: # fkeycapture
1. (Default) Recive key as a string 1. (Default) Recive key as a string
2. Recive key as bytes 2. Recive key as bytes
#### How to Use: #### How to Use:
1. from fkeycapture import get 1. from fkeycapture import get, getnum
2. Use it like this 2. Use it like this
: get([number of keys to capture],[if you want bytes output, make this 'True']) : get([number of keys to capture],[if you want bytes output, make this 'True'])
###### v.1.0.6: 3. To use the getnum method use like this: getnum([number of key to capture])
Finally made the package usable. ###### v.1.0.7:
Added the getnum method
Platform: UNKNOWN Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3

View file

@ -35,4 +35,14 @@ def get(keycount=1,bytes=False):
getp2() getp2()
if bytes == True: if bytes == True:
key = key.encode() key = key.encode()
return key
def getnum(keycount=1):
internalcounter=0
keys = []
while internalcounter != keycount:
key = get()
if key == "0" or key == "1" or key == "2" or key == "3" or key == "4" or key == "5" or key == "6" or key == "7" or key == "8" or key == "9":
keys.append(key)
internalcounter += 1
key = "".join(keys)
return key return key