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

Skip to content

Capturing menus/objects #247

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

Open
smaragdus opened this issue Feb 12, 2020 · 8 comments
Open

Capturing menus/objects #247

smaragdus opened this issue Feb 12, 2020 · 8 comments

Comments

@smaragdus
Copy link

It seems that ksnip is unable to capture cascading menus like this one for example:

MiniBin 6 6 0 0 - 2020-02-12 - 002

I tried these commands:

  • Capture active Window
  • Capture Window under Cursor

Capture active Window captured nothing (blank image).
Capture Window under Cursor did nothing (nothing was captured).

Can ksnip capture such menus? Am I missing something?

I am using ksnip version 1.6.0 under Windows 8 x64.

@DamirPorobic
Copy link
Member

hmm, you're talking about global hotkeys? I believe this doesn't work because any keypress is first handled by the OS and pressing a key causes the context menu to close. I hope we can mitigate this by making finally the PrintKey work, this one would be handled prior to being sent to the OS. The #239 issue will hopefully resolve this one too. I'm personally annoyed by this one too so it might get implemented soon ;)

@smaragdus
Copy link
Author

@DamirPorobic

I suppose capturing such menus/objects can be tricky. Some commercial programs have special command- 'Capture Object' for such stuff- my example was system tray commands with sub-menus (cascading menus). I even tried command 'New - Active Window' plus 'Delay' without success (the result was blank image).

@DamirPorobic
Copy link
Member

Oh, you talk about just capturing the context menu? There is no logic in ksnip that supports that feature. We can capture only windows/frames and this by getting the active windows rectangle and a screenshot of the whole screen, then cropping out the rest. It might be possible to do the same for context menus. Not sure how difficult it will be, haven't looked into such feature at all.

@RafaelLinux
Copy link

To capture that kind of nested menus (but not only the menus, of course) I put a delay of 9 seconds in Ksnip and then click on "Capture rectangular area", to open the cascading menus just opened. Is not what you was trying to do?

@Rmano
Copy link
Contributor

Rmano commented Jun 9, 2020

To capture that kind of nested menus (but not only the menus, of course) I put a delay of 9 seconds in Ksnip and then click on "Capture rectangular area", to open the cascading menus just opened. Is not what you was trying to do?

Yes, this normally works. Sometimes the clicks do not go through during the delay --- but it's not reproducible here, and aborting and restarting the capture normally fixes it.

@SonGokussj4
Copy link

This just happened to me. If I set a delay, I can't click and open menus... Is this normal behaviour?

Using RockyLinux 8.6, KSnip v1.9.1

@DamirPorobic
Copy link
Member

@SonGokussj4 try reducing the Implicit delay, up to 0. Options > Settings > Image Grabber > Implicit capture delay

@SonGokussj4
Copy link

Not existing in my version.
I'll try to install newest from rpm tomorrow

image

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

No branches or pull requests

5 participants