kenenet 1.2.7__py3-none-any.whl → 1.2.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
kenenet/__init__.py CHANGED
@@ -28,16 +28,13 @@ def get_pos(timer=3.0, key='f7', timed_key='f8', kill=False):
28
28
  coord_rgb = []
29
29
  coords = []
30
30
 
31
- def _get_pos(key, kill=False):
31
+ def _get_pos(key, timed_key, kill=False):
32
32
  while True:
33
- pressed_key = keyboard.wait(key)
34
- if pressed_key == timed_key:
35
- quick_print(f"Pausing for {timer} seconds...")
33
+ keyboard.wait([key, timed_key])
34
+ if keyboard.is_pressed(timed_key):
35
+ quick_print(f"Timed key pressed. Pausing for {timer} seconds...")
36
36
  time.sleep(timer)
37
-
38
37
  x, y = zhmiscellany.misc.get_mouse_xy()
39
- if timer:
40
- quick_print('')
41
38
  with mss.mss() as sct:
42
39
  region = {"left": x, "top": y, "width": 1, "height": 1}
43
40
  screenshot = sct.grab(region)
@@ -54,7 +51,7 @@ def get_pos(timer=3.0, key='f7', timed_key='f8', kill=False):
54
51
  quick_print(f'Press {key} for cursor info (or {timed_key} for a {timer}s wait before), automatically copies coords/rgb to clipboard')
55
52
  frame = inspect.currentframe().f_back
56
53
  lineno = frame.f_lineno
57
- _get_pos(key, kill)
54
+ _get_pos(key, timed_key, kill)
58
55
 
59
56
  def timer(clock=1):
60
57
  if clock in timings:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 1.2.7
3
+ Version: 1.2.8
4
4
  Summary: dude what the fuck even is this package
5
5
  Home-page: https://www.youtube.com/@KiddyKene
6
6
  Author: kiddykene
@@ -0,0 +1,5 @@
1
+ kenenet/__init__.py,sha256=pC2aI-XC9xCejz5w010RveABpYSD552Orx6QKCsK7os,23268
2
+ kenenet-1.2.8.dist-info/METADATA,sha256=aUVGc29RSna8gfInlXRJdkIOwGg6Oq8gSMBvpGSjUMA,1693
3
+ kenenet-1.2.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ kenenet-1.2.8.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-1.2.8.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=z1g3XVeX5y1ycu0om4GZews1k0KyUM4y2afn4t_Zqdc,23292
2
- kenenet-1.2.7.dist-info/METADATA,sha256=Wq6xceqJx7-OEI6Y0n9i3j8a8WArK4yeZ4ZmbTqy5wY,1693
3
- kenenet-1.2.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-1.2.7.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-1.2.7.dist-info/RECORD,,