Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshot is of whatever was previously on the clipboard #44

Open
shayded-exe opened this issue Aug 20, 2020 · 5 comments
Open

Screenshot is of whatever was previously on the clipboard #44

shayded-exe opened this issue Aug 20, 2020 · 5 comments
Labels
response needed Waiting for a response from the issue creator

Comments

@shayded-exe
Copy link

Issue is simple. Happening on Windows 10.

  1. Copy something to the clipboard
  2. Take a snap of something else in the same file
  3. The resulting snap will be of what you copied to your clipboard previously
  4. Switch away from the CodeSnap tab and back again. The image will refresh to the correct one.

I've noticed this in other cases too where the image just doesn't load until I switch away and back to the tab.

@kufii
Copy link
Owner

kufii commented Sep 14, 2020

are you waiting for the flash animation before pasting? The flash animation is the confirmation that the screenshot has been taken

@kufii kufii added the response needed Waiting for a response from the issue creator label Sep 14, 2020
@AndhikaWB
Copy link

It's a focus related thing. You need to click CodeSnap tab first before copying the image. Otherwise, it will copy something else from your current focused tab (in this case I think you selected nothing so it keeps the previous clipboard). And as mentioned by kufii before, you know the image is already copied when it flashes.

@LERUfic
Copy link

LERUfic commented Dec 12, 2020

Yeah, this is also happening to me. Instead using the selected lines, codesnap uses my clipboard for the image. Is this intended behavior or a bug?

Version: 1.52.0
Commit: 940b5f4bb5fa47866a54529ed759d95d09ee80be
Date: 2020-12-10T22:46:53.673Z (1 day ago)
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0

Dec-13-2020 04-32-57

@MrLuje
Copy link

MrLuje commented Feb 22, 2021

@kufii I agree that the flow from quick actions works as intended, as it open the tab and let you select the code afterward.

But as stated by @LERUfic, by highlighting a piece of code, right click and selecting CodeSnap, I would believe that it would generate a snap of the current code and not a previously copied code (as a user who have never used this extension 😉)

@zinface
Copy link

zinface commented Aug 6, 2021

I found that some characters may make it impossible to generate screenshots.
For example:

"%02x:%02x:%02x:%02x:%02x:%02x"

This is c language formatted string (mac address code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
response needed Waiting for a response from the issue creator
Projects
None yet
Development

No branches or pull requests

6 participants