ai-screenshooter 1.0.1__tar.gz → 1.0.2__tar.gz
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.
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/PKG-INFO +1 -1
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/PKG-INFO +1 -1
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshot.py +12 -15
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/setup.py +1 -1
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/README.md +0 -0
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/SOURCES.txt +0 -0
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/dependency_links.txt +0 -0
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/entry_points.txt +0 -0
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/requires.txt +0 -0
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/top_level.txt +0 -0
- {ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/setup.cfg +0 -0
|
@@ -113,25 +113,22 @@ def send_screenshots():
|
|
|
113
113
|
print(f"❌ Upload failed: {response.text}")
|
|
114
114
|
|
|
115
115
|
def on_press(key):
|
|
116
|
+
current_keys.add(key)
|
|
116
117
|
try:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
elif any("ctrl" in k for k in current_keys) and any("shift" in k for k in current_keys) and 't' in current_keys:
|
|
126
|
-
print("📤 Sending all screenshots...")
|
|
127
|
-
send_screenshots()
|
|
118
|
+
if key == keyboard.KeyCode.from_char('s') and {keyboard.Key.ctrl_l, keyboard.Key.shift} <= current_keys:
|
|
119
|
+
print("📸 Capturing screenshot...")
|
|
120
|
+
capture_screenshot()
|
|
121
|
+
elif key == keyboard.KeyCode.from_char('t') and {keyboard.Key.ctrl_l, keyboard.Key.shift} <= current_keys:
|
|
122
|
+
print("📤 Sending all screenshots...")
|
|
123
|
+
send_screenshots()
|
|
124
|
+
except AttributeError:
|
|
125
|
+
pass
|
|
128
126
|
|
|
129
127
|
def on_release(key):
|
|
130
128
|
try:
|
|
131
|
-
|
|
132
|
-
except
|
|
133
|
-
|
|
134
|
-
current_keys.discard(name)
|
|
129
|
+
current_keys.remove(key)
|
|
130
|
+
except KeyError:
|
|
131
|
+
pass
|
|
135
132
|
|
|
136
133
|
def main():
|
|
137
134
|
parser = argparse.ArgumentParser(description="AI Screenshot CLI")
|
|
File without changes
|
|
File without changes
|
{ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{ai_screenshooter-1.0.1 → ai_screenshooter-1.0.2}/ai_screenshooter.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|