Possible Bug - Windows & Global Command to paste time/date - causes screenshot immediately after
Describe the bug Using paste current time with any shortcut, default or custom, causes unexpected behavior. It does copy the time to the clipboard but then immediately causes a screenshot to be taken. So no date is pasted into expected program, and the screenshot is not in copyq.
To Reproduce Use default or custom shortcut for either command for pasting current time, and happens every time. Turned off one command to try the other.
Expected behavior Copyq global shortcut pastes time/date in intended window.
Screenshots
If applicable, add screenshots to help explain your problem.
Version, OS and Environment
(Get details from copyq version command if possible.)
- Application Version 7.0.0
- OS Windows 11ent]
Additional context Log file shows QTWarnings for DirectWrite Create fontface, and retrying to obtain clipboard. Some commands installed.
Do you mean the "Paste Current Time" from here?
Can you copy the command from the list in the Commands dialog in CopyQ and paste it here?
Can you also search for "screenshot" in the Commands dialog (the Find text box at the bottom) and see if there are any matching enabled commands?
Many thanks for the response. Command from here (repository) Only the 'Store Copy Time' is active.
ISO
Current Time (edit)
Current time date OG
The time variable is not used in the edited version ("Current Time (edit)").
I still have no idea why it would trigger any screenshot functionality.
Can you try adding a new command and assigning a global shortcut? For example:
[Command]
Command="
copyq popup TEST"
GlobalShortcut=meta+t
Icon=\xf15b
IsGlobalShortcut=true
Name=Test
You can also try disabling the screenshot functionality (but it could show an error popup) in CopyQ with:
[Command]
Command="
function disabled() {
throw 'Screenshots are disabled'; // try removing this line to avoid the error popup
}
global.screenshot = disabled
global.screenshotSelect = disabled"
Icon=\xf05e
IsScript=true
Name=Disable Screenshots
Thank you for looking into. The first one worked; no screenshot & pop up showed.
I assume there is some call to screenshot() in your commands, otherwise I'm out of ideas.
I will look through my commands this weekend and let you know. Thank you for responding. The PC is a newer dell that I have had issues with this week with drivers...not sure if that could relate to this issue but wanted to through that out there.