Opened 15 years ago

Closed 15 years ago

#1081 closed Feature Request (Rejected)

Consider this code for include: waiting for the clipboard to fill.

Reported by: jondemarks@… Owned by: Gary
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: clipboard, udfs, wait Cc:


This code block clears the clipboard and waits until it is filled again. It may need to be modified to come inline with your standards, this is just one way of doing it.

Seems to be good for core functionality.

Func _Clipboard_Wait()
	$thisClip = 0
	While StringLen($thisClip) == 0
		$hMemory = _ClipBoard_GetDataEx($CF_TEXT)
		$tData = DllStructCreate("char Text[32]", $hMemory)
		$thisClip = DllStructGetData($tData, "Text")
		$hMemory = 0
		$tData = 0

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by zedna

I don't think this is elegant/usefull code which should be included as standard
because there is more elegant way to do it with clipboard hook.

Look at this post

comment:2 Changed 15 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

I agree that this doesn't really fit.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Gary.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.