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

[Question] How disable images in clipboard? #133

Open
Kristinita opened this issue Jan 22, 2017 · 6 comments
Open

[Question] How disable images in clipboard? #133

Kristinita opened this issue Jan 22, 2017 · 6 comments
Labels

Comments

@Kristinita
Copy link

Kristinita commented Jan 22, 2017

1. Briefly

I don't want images in my clipboard. I want only link to images, that I can paste it.

2. Detail

I use ShareX program for my screenshots. I make screenshot → my screenshot add to remote server → I get link to screenshot in my clipboard. When I use Clipjump, sometimes I get links, but sometimes I get images, for example:

Image

It is unexpected behavior for me. Expected:

Expected

3. Did not help

  • I don't find solution in Help and Clipjump settings.

4. Environment

Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Clipjump:
v12.5

Thanks.

@aviaryan
Copy link
Owner

When I use Clipjump, sometimes I get link, but sometimes I get images, for example:

When you get images, do you get just image or both link + image.

@Kristinita
Copy link
Author

When you get images, do you get just image or both link + image.

Is it a question? I get image, not link. I can not quickly paste link to image.

Thanks.

@aviaryan
Copy link
Owner

Is it a question? I get image, not link. I can not quickly paste link to image.

If you are always using "add to remote server" option when using ShareX, I guess it will always upload to imgur and copy the link to Clipjump. But behind the scenes, what ShareX does it is that it first copies screenshot to clipboard and then uploads it to imgur. So there are two clipboard changes here and because of race condition, one or the other sustains.

However, if you completely want to disable images in clipboard, you will have to change code files.
https://github.com/aviaryan/Clipjump/blob/master/Clipjump.ahk#L517

Change it as follows and then restart Clipjump.

else If CErrorlevel = 2
	{
                        setTimer, TooltipOff, 500
                        LASTCLIP := ""
                        return
			CURSAVE += 1 , TEMPSAVE := CURSAVE , LASTCLIP := ""

Let me know if this works. I am surprised why I didn't give an option to disable image in clipboard so far.

@Kristinita
Copy link
Author

@aviaryan , so far it works for me. I get in clipboard link + image (but it would be nice, if would be possible disable images). Thank you!

@Kristinita
Copy link
Author

Problem is reproduced for me 3 times.

I apply your changes → I restart Windows → I make first screenshot via ShareX → I can get no image and link:

Image and link

The preview/path can not be loaded

If I make the second and subsequents screenshots, I get expected behavior.

Thanks.

@Kristinita Kristinita reopened this Jan 22, 2017
@Kristinita
Copy link
Author

@aviaryan , maybe you add this changes in new release?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants