Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6343347

Browse files
author
greeneu
committed
fix -> addressed macos screenshot bug "Only takes screenshots of the desktop screen not the screen you are currently at".
1 parent 0eda8b5 commit 6343347

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Interview Coder - Unlocked Edition
1+
# CodeInterviewAssist
22

3-
## Free, Open-Source Alternative to Paid AI Interview Tools
3+
## Free, Open-Source AI-Powered Interview Preparation Tool
44

5-
This project offers a completely free alternative to premium AI interview coding tools like Interview Coder, AlgoExpert, and similar platforms. I've removed all paywalls, subscriptions, and user authentication – replacing them with a local backend that uses your own OpenAI API key.
5+
This project provides a powerful alternative to premium coding interview platforms. It delivers the core functionality of paid interview preparation tools but in a free, open-source package. Using your own OpenAI API key, you get access to advanced features like AI-powered problem analysis, solution generation, and debugging assistance - all running locally on your machine.
66

77
### Why This Exists
88

@@ -44,7 +44,7 @@ The application uses unidentifiable global keyboard shortcuts that won't be dete
4444
- Take Screenshot: [Control or Cmd + H]
4545
- Delete Last Screenshot: [Control or Cmd + L]
4646
- Process Screenshots: [Control or Cmd + Enter]
47-
- Reset View: [Control or Cmd + R]
47+
- Start New Problem: [Control or Cmd + R]
4848
- Quit: [Control or Cmd + Q]
4949
- Decrease Opacity: [Control or Cmd + []
5050
- Increase Opacity: [Control or Cmd + ]]
@@ -75,8 +75,8 @@ Note: The application is **NOT** invisible to:
7575
- Screen Recording Permission for Terminal/IDE
7676
- On macOS:
7777
1. Go to System Preferences > Security & Privacy > Privacy > Screen Recording
78-
2. Ensure that Interview Coder has screen recording permission enabled
79-
3. Restart Interview Coder after enabling permissions
78+
2. Ensure that CodeInterviewAssist has screen recording permission enabled
79+
3. Restart CodeInterviewAssist after enabling permissions
8080
- On Windows:
8181
- No additional permissions needed
8282
- On Linux:
@@ -141,9 +141,9 @@ chmod +x stealth-run.sh
141141
- Adjust window opacity with Ctrl+[/]/Cmd+[/] if needed
142142
- For macOS: ensure script has execute permissions (`chmod +x stealth-run.sh`)
143143

144-
## Comparison with Paid Version of Interview Coder
144+
## Comparison with Paid Interview Tools
145145

146-
| Feature | Interview Coder (Paid) | Interview Coder Unlocked (This Project) |
146+
| Feature | Premium Tools (Paid) | CodeInterviewAssist (This Project) |
147147
|---------|------------------------|----------------------------------------|
148148
| Price | $60/month subscription | Free (only pay for your API usage) |
149149
| Solution Generation |||
@@ -197,7 +197,7 @@ chmod +x stealth-run.sh
197197
- Toggle visibility with [Control or Cmd + B]
198198
- Adjust opacity with [Control or Cmd + [] and [Control or Cmd + ]]
199199
- Window remains invisible to specified screen sharing applications
200-
- Reset view using [Control or Cmd + R]
200+
- Start a new problem using [Control or Cmd + R]
201201

202202
## Adding More AI Models
203203

electron/main.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ async function createWindow(): Promise<void> {
345345
console.log(`Initial opacity from config: ${savedOpacity}`);
346346

347347
// Always make sure window is shown first
348-
state.mainWindow.show();
349-
state.mainWindow.focus();
348+
state.mainWindow.showInactive(); // Use showInactive for consistency
350349

351350
if (savedOpacity <= 0.1) {
352351
console.log('Initial opacity too low, setting to 0 and hiding window');
@@ -407,11 +406,11 @@ function showMainWindow(): void {
407406
visibleOnFullScreen: true
408407
});
409408
state.mainWindow.setContentProtection(true);
410-
state.mainWindow.show();
411-
state.mainWindow.focus();
412-
state.mainWindow.setOpacity(1);
409+
state.mainWindow.setOpacity(0); // Set opacity to 0 before showing
410+
state.mainWindow.showInactive(); // Use showInactive instead of show+focus
411+
state.mainWindow.setOpacity(1); // Then set opacity to 1 after showing
413412
state.isWindowVisible = true;
414-
console.log('Window shown, opacity set to 1');
413+
console.log('Window shown with showInactive(), opacity set to 1');
415414
}
416415
}
417416

0 commit comments

Comments
 (0)