deskflow / deskflow/deskflow

Elegant retry mechanism for Windows clipboard

Open
#9,556 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
28.8k
Forks
4.9k
Avg merge
2d 17h
Merged PRs (30d)
21

Description

### Feature Request

After reviewing the proposed retry-sleep loop in PR #9474 it occured to me that we could use some more elegant and resilent approaches to retry the Windows clipoard:
- use our event system to fire delayed events to retry the clipboard open
- use `AddClipboardFormatListener`
- use `SleepEx` instead with `MsgWaitForMultipleObjects`

PowerShell script to test: `$i=0; while($true){Set-Clipboard -Value $i; $i++; Start-Sleep -Milliseconds 1}`

### Voting Instructions

React with :+1: or :-1: to vote on this request

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.