thomas1972
Goto Top

Zwischenablage nach gewisser Zeit leeren

Hallo,
ich übergebe in Access ein Wert in die Zwischenablage,
wie bekomme ich es hin, dass dieser nur eine gewisse Zeit im Cache bleibt ( z.b. 10 Sekunden) und danach geleert wird.

  If Not IsNull(Me.pass_pwd) Then
  Me.pass_pwd.SetFocus
  DoCmd.RunCommand acCmdCopy
  End If

Grüße aus München

Content-Key: 269002

Url: https://administrator.de/contentid/269002

Printed on: April 24, 2024 at 19:04 o'clock

Member: Pjordorf
Pjordorf Apr 13, 2015 at 08:25:11 (UTC)
Goto Top
Hallo,

Zitat von @thomas1972:
wie bekomme ich es hin, dass dieser nur eine gewisse Zeit im Cache bleibt ( z.b. 10 Sekunden) und danach geleert wird.
Die Zeit wirst du dir bauen müssen face-smile, das Kommando lautet
cmd /c “echo off | clip”
Gruß,
Peter
Mitglied: 114757
114757 Apr 13, 2015 updated at 16:03:17 (UTC)
Goto Top
MSForms 2.0 Verweis zum Projekt hinzufügen ...

eb9031c5fc7e56055999bc7326c8dd6a

und dann folgenden Code verwenden
Dim clipboard As MSForms.DataObject
Set clipboard = New MSForms.DataObject
clipboard.SetText Me.pass_pwd.Value
clipboard.PutInClipboard
start = Now()
while now() < (start + TimeValue("0:00:10"))  
    DoEvents
Wend
clipboard.SetText ""  
clipboard.PutInClipboard
Gruß jodel32